提交 e8da254c 编写于 作者: M Martin Brandenburg 提交者: Mike Marshall

orangefs: move code which sets i_link to orangefs_inode_getattr

Everything else setting inode->i_ values is in there.
Signed-off-by: NMartin Brandenburg <martin@omnibond.com>
Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 05d31c5c
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册