From 3333ed35b83dc69aa678943da97b3dcc84d75aab Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 23 Feb 2025 22:14:47 -0500 Subject: ramfs, hugetlbfs, mqueue: set DCACHE_DONTCACHE makes simple_lookup() slightly cheaper there - no need for simple_lookup() to set the flag and we want it on everything on those anyway. Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- ipc/mqueue.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ipc') diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 82ed2d3c98463e..482af449e00da7 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -411,6 +411,7 @@ static int mqueue_fill_super(struct super_block *sb, struct fs_context *fc) sb->s_blocksize_bits = PAGE_SHIFT; sb->s_magic = MQUEUE_MAGIC; sb->s_op = &mqueue_super_ops; + sb->s_d_flags = DCACHE_DONTCACHE; inode = mqueue_get_inode(sb, ns, S_IFDIR | S_ISVTX | S_IRWXUGO, NULL); if (IS_ERR(inode)) -- cgit 1.2.3-korg