orangefs: move code which sets i_link to orangefs_inode_getattr

Everything else setting inode->i_ values is in there.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
Martin Brandenburg 2016-03-18 14:20:15 -04:00 committed by Mike Marshall
parent 05d31c5cb3
commit e8da254c41
2 changed files with 1 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}