Skip to content

Commit feb5f96

Browse files
Mitch Hardermasoncl
authored andcommitted
Btrfs: fix max_inline mount option
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>
1 parent a9d2d4a commit feb5f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
566566
kfree(num);
567567

568568
if (info->max_inline) {
569-
info->max_inline = max_t(u64,
569+
info->max_inline = min_t(u64,
570570
info->max_inline,
571571
root->sectorsize);
572572
}

0 commit comments

Comments
 (0)