diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/ctree.h | 1 | ||||
-rw-r--r-- | fs/btrfs/disk-io.c | 2 | ||||
-rw-r--r-- | fs/btrfs/super.c | 2 |
3 files changed, 3 insertions, 2 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 { | |||
2089 | #define BTRFS_MOUNT_CHANGE_INODE_CACHE (1 << 24) | 2089 | #define BTRFS_MOUNT_CHANGE_INODE_CACHE (1 << 24) |
2090 | 2090 | ||
2091 | #define BTRFS_DEFAULT_COMMIT_INTERVAL (30) | 2091 | #define BTRFS_DEFAULT_COMMIT_INTERVAL (30) |
2092 | #define BTRFS_DEFAULT_MAX_INLINE (8192) | ||
2092 | 2093 | ||
2093 | #define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) | 2094 | #define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) |
2094 | #define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) | 2095 | #define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) |
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; |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 1c6da8e00c1b..b1d2a42f379d 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -1014,7 +1014,7 @@ static int btrfs_show_options(struct seq_file *seq, struct dentry *dentry) | |||
1014 | seq_puts(seq, ",nodatacow"); | 1014 | seq_puts(seq, ",nodatacow"); |
1015 | if (btrfs_test_opt(root, NOBARRIER)) | 1015 | if (btrfs_test_opt(root, NOBARRIER)) |
1016 | seq_puts(seq, ",nobarrier"); | 1016 | seq_puts(seq, ",nobarrier"); |
1017 | if (info->max_inline != 8192 * 1024) | 1017 | if (info->max_inline != BTRFS_DEFAULT_MAX_INLINE) |
1018 | seq_printf(seq, ",max_inline=%llu", info->max_inline); | 1018 | seq_printf(seq, ",max_inline=%llu", info->max_inline); |
1019 | if (info->alloc_start != 0) | 1019 | if (info->alloc_start != 0) |
1020 | seq_printf(seq, ",alloc_start=%llu", info->alloc_start); | 1020 | seq_printf(seq, ",alloc_start=%llu", info->alloc_start); |