Re: [PATCH RFC v2 1/2] pidfs: keep pidfs dentry stashed once created

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

 



> @@ -2234,8 +2239,15 @@ int path_from_stashed(struct dentry **stashed, struct vfsmount *mnt, void *data,
>  		return PTR_ERR(dentry);
>  
>  	/* Added a new dentry. @data is now owned by the filesystem. */
> -	path->dentry = stash_dentry(stashed, dentry);
> -	if (path->dentry != dentry)
> +	if (sops->stash_dentry)
> +		res = sops->stash_dentry(stashed, dentry);
> +	else
> +		res = stash_dentry(stashed, dentry);
> +	if (IS_ERR(res))
> +		return PTR_ERR(res);

Missing dput(). Fixed in-tree.




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

  Powered by Linux