Skip to contentSkip to conversation

Btrfs: remove warn on in free space cache writeout

PATCH New Josef Bacik 1 participant 1 message May 8, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: remove warn on in free space cache writeout

This catches block groups that are too large to properly cache. We deal with this case fine, so the warning just confuses users. Remove the warning. Thanks,

---
 fs/btrfs/free-space-cache.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
fs/btrfs/free-space-cache.c +1 -3
index d61eae9..d7fb58d 100644
@@ -920,10 +920,8 @@ static int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode,
 
 	/* Make sure we can fit our crcs into the first page */
 	if (io_ctl.check_crcs &&
-	    (io_ctl.num_pages * sizeof(u32)) >= PAGE_CACHE_SIZE) {
-		WARN_ON(1);
+	    (io_ctl.num_pages * sizeof(u32)) >= PAGE_CACHE_SIZE)
 		goto out_nospc;
-	}
 
 	io_ctl_set_generation(&io_ctl, trans->transid);
 
Signature · 1 line
1.7.7.6