Skip to content

Commit

Permalink
orangefs: move code which sets i_link to orangefs_inode_getattr
Browse files Browse the repository at this point in the history
Everything else setting inode->i_ values is in there.

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 05d31c5 commit e8da254
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions fs/orangefs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ int orangefs_getattr(struct vfsmount *mnt,
/* override block size reported to stat */
orangefs_inode = ORANGEFS_I(inode);
kstat->blksize = orangefs_inode->blksize;

inode->i_link = ORANGEFS_I(dentry->d_inode)->link_target;
}
return ret;
}
Expand Down
1 change: 1 addition & 0 deletions fs/orangefs/orangefs-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ int orangefs_inode_getattr(struct inode *inode, int new, int size)
strlcpy(orangefs_inode->link_target,
new_op->downcall.resp.getattr.link_target,
ORANGEFS_NAME_MAX);
inode->i_link = orangefs_inode->link_target;
}
break;
}
Expand Down

0 comments on commit e8da254

Please sign in to comment.