Christoph Hellwig <hch@xxxxxx> writes: > 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 <hch@xxxxxx> > > Index: linux-2.6/fs/fat/inode.c > =================================================================== > --- linux-2.6.orig/fs/fat/inode.c 2008-11-08 10:47:12.000000000 +0100 > +++ linux-2.6/fs/fat/inode.c 2008-11-08 12:16:18.000000000 +0100 > @@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(str > brelse(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. -- OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html