aboutsummaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-02-03 16:56:24 -0500
committerMike Marshall <hubcap@omnibond.com>2016-02-04 14:12:43 -0500
commit237f8282c04ba81926f4dfc33cd2ca20bb0c50e7 (patch)
tree9d52d13d17b0943591e40850f443690372324513 /fs/orangefs
parent933287da750edefbf0f449750fd67b4fc6c10013 (diff)
orangefs: Do not retrieve size from servers unless it it necessary.
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/inode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index e9688f0b99d7..d2923dc91388 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -411,7 +411,8 @@ struct inode *orangefs_iget(struct super_block *sb, struct orangefs_object_kref
411 if (!inode || !(inode->i_state & I_NEW)) 411 if (!inode || !(inode->i_state & I_NEW))
412 return inode; 412 return inode;
413 413
414 error = orangefs_inode_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, 0); 414 error = orangefs_inode_getattr(inode,
415 ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0);
415 if (error) { 416 if (error) {
416 iget_failed(inode); 417 iget_failed(inode);
417 return ERR_PTR(error); 418 return ERR_PTR(error);
@@ -456,7 +457,8 @@ struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir,
456 orangefs_set_inode(inode, ref); 457 orangefs_set_inode(inode, ref);
457 inode->i_ino = hash; /* needed for stat etc */ 458 inode->i_ino = hash; /* needed for stat etc */
458 459
459 error = orangefs_inode_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, 0); 460 error = orangefs_inode_getattr(inode,
461 ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0);
460 if (error) 462 if (error)
461 goto out_iput; 463 goto out_iput;
462 464