fat: make sure to set d_ops in fat_get_parent
Subsystems (2)
PATCH 1/1 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 Christoph Hellwig <[email protected]>
fs/fat/inode.c +2 -0
@@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(strbrelse (bh); parent =d_obtain_alias (inode); +if (!IS_ERR (parent)) + parent->d_op = sb->s_root->d_op; out:unlock_super (sb);
OGAWA Hirofumi
maintainerQuoted 11 lines · Christoph Hellwig
fat_get_parentneeds to setup the dentry operations, otherwise we might lose them when the NFS server needs to reconnect out of cache inodes.Signed-off-by Christoph Hellwig <[email protected]>Index:
linux-2.6/fs/fat/inode.c
===================================================================
fs/fat/inode.c static struct dentry *fat_get_parent(str · line 755
Quoted 7 lines
fs/fat/inode.c +2
-0@@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(strbrelse (bh); parent =d_obtain_alias (inode); +if (!IS_ERR (parent)) + parent->d_op = sb->s_root->d_op; out:unlock_super (sb);
Looks good. Thanks.
Signature · 1 line
OGAWA Hirofumi <[email protected]>