Skip to content

Commit

Permalink
Btrfs: Fix mount -o max_inline=0
Browse files Browse the repository at this point in the history
max_inline=0 used to force the max_inline size to one sector instead.  Now
it properly disables inline data items, while still being able to read
any that happen to exist on disk.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 8b71284 commit 15ada04
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
info->max_inline = btrfs_parse_size(num);
kfree(num);

info->max_inline = max_t(u64,
info->max_inline, root->sectorsize);
if (info->max_inline) {
info->max_inline = max_t(u64,
info->max_inline,
root->sectorsize);
}
printk(KERN_INFO "btrfs: max_inline at %llu\n",
info->max_inline);
}
Expand Down

0 comments on commit 15ada04

Please sign in to comment.