aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hugetlbfs/inode.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2025-02-24 03:14:47 +0000
committerAl Viro <[email protected]>2025-06-11 17:41:05 +0000
commit3333ed35b83dc69aa678943da97b3dcc84d75aab (patch)
treead8ba3e74a84f43e9d3eff03d388cb0c2f790db8 /fs/hugetlbfs/inode.c
parentkill simple_dentry_operations (diff)
downloadkernel-3333ed35b83dc69aa678943da97b3dcc84d75aab.tar.gz
kernel-3333ed35b83dc69aa678943da97b3dcc84d75aab.zip
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 <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/hugetlbfs/inode.c')
-rw-r--r--fs/hugetlbfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index e4de5425838d..6e0ade365a33 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -1433,6 +1433,7 @@ hugetlbfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb->s_blocksize_bits = huge_page_shift(ctx->hstate);
sb->s_magic = HUGETLBFS_MAGIC;
sb->s_op = &hugetlbfs_ops;
+ sb->s_d_flags = DCACHE_DONTCACHE;
sb->s_time_gran = 1;
/*