mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
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 <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user