Skip to contentSkip to conversation

Btrfs: handle the space_cache option properly

PATCH New Josef Bacik 1 participant 1 message Nov 19, 2010 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: handle the space_cache option properly

So 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. Thanks,

---
 fs/btrfs/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/btrfs/super.c +1 -0
index 9145551..5bf03af 100644
@@ -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);
Signature · 1 line
1.6.6.1