Re: [PATCH] fat: make sure to set d_ops in fat_get_parent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux