From: Josef Bacik Date: Fri, 19 Nov 2010 13:40:41 +0000 (+0000) Subject: Btrfs: handle the space_cache option properly X-Git-Tag: v2.6.37-rc4~6^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0de90876c6cb774d4a424dafc1fc9ec50071b81b;p=profile%2Fcommon%2Fkernel-common.git Btrfs: handle the space_cache option properly When I added the clear_cache option I screwed up and took the break out of the space_cache case statement, so whenever you mount with space_cache you also get clear_cache, which does you no good if you say set space_cache in fstab so it always gets set. This patch adds the break back in properly. Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 718b10d..66e4612 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -244,6 +244,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) case Opt_space_cache: printk(KERN_INFO "btrfs: enabling disk space caching\n"); btrfs_set_opt(info->mount_opt, SPACE_CACHE); + break; case Opt_clear_cache: printk(KERN_INFO "btrfs: force clearing of disk cache\n"); btrfs_set_opt(info->mount_opt, CLEAR_CACHE);