Skip to content

Commit

Permalink
orangefs: use new orangefs_inode_getattr to create new inodes
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Brandenburg <[email protected]>
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
Martin Brandenburg authored and hubcapsc committed Mar 23, 2016
1 parent 3c9cf98 commit 075cca5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/orangefs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 075cca5

Please sign in to comment.