aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-11 16:51:38 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit15ada040d7cd68d7853938a92b116292cc16a2f3 (patch)
tree1453852cc4dff63feb2fe3d9df3b317b531711cb
parent8b7128429235d9bd72cfd5ed20c77c4f3118f744 (diff)
Btrfs: Fix mount -o max_inline=0
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>
-rw-r--r--fs/btrfs/super.c7
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 }