Skip to content

Commit

Permalink
Btrfs: fix max_inline mount option
Browse files Browse the repository at this point in the history
Currently, the only mount option for max_inline that has any effect is
max_inline=0.  Any other value that is supplied to max_inline will be
adjusted to a minimum of 4k.  Since max_inline has an effective maximum
of ~3900 bytes due to page size limitations, the current behaviour
only has meaning for max_inline=0.

This patch will allow the the max_inline mount option to accept non-zero
values as indicated in the documentation.

Signed-off-by: Mitch Harder <mitch.harder@sabayonlinux.org>
Signed-off-by: Chris Mason <clm@fb.com>
  • Loading branch information
Mitch Harder authored and Chris Mason committed Feb 14, 2014
1 parent a9d2d4a commit feb5f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
kfree(num);

if (info->max_inline) {
info->max_inline = max_t(u64,
info->max_inline = min_t(u64,
info->max_inline,
root->sectorsize);
}
Expand Down

0 comments on commit feb5f96

Please sign in to comment.