diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 346932e546ba..f3274befd46a 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -184,8 +184,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
184 | info->max_inline = btrfs_parse_size(num); | 184 | info->max_inline = btrfs_parse_size(num); |
185 | kfree(num); | 185 | kfree(num); |
186 | 186 | ||
187 | info->max_inline = max_t(u64, | 187 | if (info->max_inline) { |
188 | info->max_inline, root->sectorsize); | 188 | info->max_inline = max_t(u64, |
189 | info->max_inline, | ||
190 | root->sectorsize); | ||
191 | } | ||
189 | printk(KERN_INFO "btrfs: max_inline at %llu\n", | 192 | printk(KERN_INFO "btrfs: max_inline at %llu\n", |
190 | info->max_inline); | 193 | info->max_inline); |
191 | } | 194 | } |