summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorFilipe David Borba Manana2013-08-08 23:45:48 +0200
committerDavid Sterba2014-10-02 17:29:24 +0200
commit95ac567af212db3293af3897ccb521efdf1dd7ff (patch)
treefaed6311cacc75c0aca34203b4674690d56bb448 /fs/btrfs/ctree.h
parentbtrfs: remove unused variable from btrfs_parse_options (diff)
downloadkernel-qcow2-linux-95ac567af212db3293af3897ccb521efdf1dd7ff.tar.gz
kernel-qcow2-linux-95ac567af212db3293af3897ccb521efdf1dd7ff.tar.xz
kernel-qcow2-linux-95ac567af212db3293af3897ccb521efdf1dd7ff.zip
Btrfs: set default max_inline to 8KiB instead of 8MiB
8MiB is way too large and likely set by mistake. This is not a significant issue as in practice the max amount of data added to an inline extent is also limited by the page cache and btree leaf sizes. Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com> Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 089f6da09411..dd79ba7ee3ea 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2089,6 +2089,7 @@ struct btrfs_ioctl_defrag_range_args {
#define BTRFS_MOUNT_CHANGE_INODE_CACHE (1 << 24)
#define BTRFS_DEFAULT_COMMIT_INTERVAL (30)
+#define BTRFS_DEFAULT_MAX_INLINE (8192)
#define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt)
#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt)