diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-08-08 17:45:48 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-10-02 11:29:24 -0400 |
commit | 95ac567af212db3293af3897ccb521efdf1dd7ff (patch) | |
tree | faed6311cacc75c0aca34203b4674690d56bb448 /fs/btrfs/disk-io.c | |
parent | 143f363618558478fd7b5156c343d21e74194987 (diff) |
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/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 4780e6623c7b..9b2a741370b7 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -2260,7 +2260,7 @@ int open_ctree(struct super_block *sb, | |||
2260 | atomic_set(&fs_info->qgroup_op_seq, 0); | 2260 | atomic_set(&fs_info->qgroup_op_seq, 0); |
2261 | atomic64_set(&fs_info->tree_mod_seq, 0); | 2261 | atomic64_set(&fs_info->tree_mod_seq, 0); |
2262 | fs_info->sb = sb; | 2262 | fs_info->sb = sb; |
2263 | fs_info->max_inline = 8192 * 1024; | 2263 | fs_info->max_inline = BTRFS_DEFAULT_MAX_INLINE; |
2264 | fs_info->metadata_ratio = 0; | 2264 | fs_info->metadata_ratio = 0; |
2265 | fs_info->defrag_inodes = RB_ROOT; | 2265 | fs_info->defrag_inodes = RB_ROOT; |
2266 | fs_info->free_chunk_space = 0; | 2266 | fs_info->free_chunk_space = 0; |