From: Christoph Hellwig Date: Tue, 11 Nov 2008 22:48:01 +0000 (+0900) Subject: fat: make sure to set d_ops in fat_get_parent X-Git-Tag: v2.6.29-rc1~551^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=5a6bb10393eb9a1985e97af12f0cb2906bcbf1af 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 Signed-off-by: OGAWA Hirofumi --- diff --git a/fs/fat/inode.c b/fs/fat/inode.c index bdd8fb7be2ca..37a8af159a13 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -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);