[PATCH v2 21/21] tracefs: set DCACHE_DONTCACHE

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

 



*NOTE* - this does change behaviour; as it is, cache misses are hashed
and retained there.

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
 fs/tracefs/inode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c
index c8ca61777323..40fa6220189d 100644
--- a/fs/tracefs/inode.c
+++ b/fs/tracefs/inode.c
@@ -481,6 +481,7 @@ static int tracefs_fill_super(struct super_block *sb, struct fs_context *fc)
 
 	sb->s_op = &tracefs_super_operations;
 	set_default_d_op(sb, &tracefs_dentry_operations);
+	sb->s_d_flags |= DCACHE_DONTCACHE;
 
 	return 0;
 }
-- 
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