summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTahsin Erdogan2017-06-22 17:55:14 +0200
committerTheodore Ts'o2017-06-22 17:55:14 +0200
commitcdb7ee4c632759075866bb8da5fb16b764e66ded (patch)
treed3c6d898e4f77c5dc8073d42b7262f4ee8663fac /fs/ext4/ext4.h
parentext4: strong binding of xattr inode references (diff)
downloadkernel-qcow2-linux-cdb7ee4c632759075866bb8da5fb16b764e66ded.tar.gz
kernel-qcow2-linux-cdb7ee4c632759075866bb8da5fb16b764e66ded.tar.xz
kernel-qcow2-linux-cdb7ee4c632759075866bb8da5fb16b764e66ded.zip
ext4: add nombcache mount option
The main purpose of mb cache is to achieve deduplication in extended attributes. In use cases where opportunity for deduplication is unlikely, it only adds overhead. Add a mount option to explicitly turn off mb cache. Suggested-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Tahsin Erdogan <tahsin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index fe92a63c86cb..68ddd24db9a2 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1114,6 +1114,7 @@ struct ext4_inode_info {
/*
* Mount flags set via mount options or defaults
*/
+#define EXT4_MOUNT_NO_MBCACHE 0x00001 /* Do not use mbcache */
#define EXT4_MOUNT_GRPID 0x00004 /* Create files with directory's group */
#define EXT4_MOUNT_DEBUG 0x00008 /* Some debugging messages */
#define EXT4_MOUNT_ERRORS_CONT 0x00010 /* Continue on errors */