提交 5a6bb103 编写于 作者: C Christoph Hellwig 提交者: OGAWA Hirofumi

fat: make sure to set d_ops in fat_get_parent

fat_get_parent needs to setup the dentry operations, otherwise we might
lose them when the NFS server needs to reconnect out of cache inodes.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
上级 985eafcc
......@@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(struct dentry *child)
brelse(bh);
parent = d_obtain_alias(inode);
if (!IS_ERR(parent))
parent->d_op = sb->s_root->d_op;
out:
unlock_super(sb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册