Re: [PATCH 11/21] nsfs, pidfs: drop the pointless ->d_delete()

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

 



On Mon, Feb 24, 2025 at 09:20:41PM +0000, Al Viro wrote:
> No dentries are ever hashed on those, so ->d_delete() wouldn't be
> even looked at.  If it's unhashed, we are not retaining it in dcache
> once the refcount hits zero, no matter what.
> 
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> ---

Patches to remove this have already been merged into mainline.

>  fs/nsfs.c  | 1 -
>  fs/pidfs.c | 1 -
>  2 files changed, 2 deletions(-)
> 
> diff --git a/fs/nsfs.c b/fs/nsfs.c
> index 663f8656158d..f7fddf8ecf73 100644
> --- a/fs/nsfs.c
> +++ b/fs/nsfs.c
> @@ -37,7 +37,6 @@ static char *ns_dname(struct dentry *dentry, char *buffer, int buflen)
>  }
>  
>  const struct dentry_operations ns_dentry_operations = {
> -	.d_delete	= always_delete_dentry,
>  	.d_dname	= ns_dname,
>  	.d_prune	= stashed_dentry_prune,
>  };
> diff --git a/fs/pidfs.c b/fs/pidfs.c
> index 63f9699ebac3..c0478b3c55d9 100644
> --- a/fs/pidfs.c
> +++ b/fs/pidfs.c
> @@ -521,7 +521,6 @@ static char *pidfs_dname(struct dentry *dentry, char *buffer, int buflen)
>  }
>  
>  const struct dentry_operations pidfs_dentry_operations = {
> -	.d_delete	= always_delete_dentry,
>  	.d_dname	= pidfs_dname,
>  	.d_prune	= stashed_dentry_prune,
>  };
> -- 
> 2.39.5
> 




[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