summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/inode.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-03-15 16:36:18 +0100
committerMike Marshall <hubcap@omnibond.com>2016-03-23 22:36:14 +0100
commit075cca50b6d3ba70ee08cc14535e1c0ba073f871 (patch)
treecbf4642b330c0f9b6dccf3301844a09d22aea9aa /fs/orangefs/inode.c
parentorangefs: rename orangefs_inode_getattr to orangefs_inode_old_getattr (diff)
downloadlinux-075cca50b6d3ba70ee08cc14535e1c0ba073f871.tar.xz
linux-075cca50b6d3ba70ee08cc14535e1c0ba073f871.zip
orangefs: use new orangefs_inode_getattr to create new inodes
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/inode.c')
-rw-r--r--fs/orangefs/inode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index fd591d44a97d..45d5846301c4 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -402,8 +402,7 @@ struct inode *orangefs_iget(struct super_block *sb, struct orangefs_object_kref
if (!inode || !(inode->i_state & I_NEW))
return inode;
- error = orangefs_inode_old_getattr(inode,
- ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0);
+ error = orangefs_inode_getattr(inode, 1, 0);
if (error) {
iget_failed(inode);
return ERR_PTR(error);
@@ -448,8 +447,7 @@ struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir,
orangefs_set_inode(inode, ref);
inode->i_ino = hash; /* needed for stat etc */
- error = orangefs_inode_old_getattr(inode,
- ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0);
+ error = orangefs_inode_getattr(inode, 1, 0);
if (error)
goto out_iput;