On Mon, Feb 24, 2025 at 09:20:44PM +0000, Al Viro wrote: > All we have there is ->d_delete equal to always_delete_dentry() and we > want that for all dentries on that things. Setting DCACHE_DONTCACHE in > ->s_d_flags will do just that. > > Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > --- Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx> > fs/hostfs/hostfs_kern.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c > index a0e0563a29d7..52479205cefe 100644 > --- a/fs/hostfs/hostfs_kern.c > +++ b/fs/hostfs/hostfs_kern.c > @@ -920,7 +920,7 @@ static int hostfs_fill_super(struct super_block *sb, struct fs_context *fc) > sb->s_blocksize_bits = 10; > sb->s_magic = HOSTFS_SUPER_MAGIC; > sb->s_op = &hostfs_sbops; > - set_default_d_op(sb, &simple_dentry_operations); > + sb->s_d_flags = DCACHE_DONTCACHE; > sb->s_maxbytes = MAX_LFS_FILESIZE; > err = super_setup_bdi(sb); > if (err) > -- > 2.39.5 >