diff mbox

[1/8] Btrfs: remove deprecated comments

Message ID 1356598884-22952-1-git-send-email-bo.li.liu@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liu Bo Dec. 27, 2012, 9:01 a.m. UTC
commit d53ba47484ed6245e640ee4bfe9d21e9bfc15765
(Btrfs: use commit root when loading free space cache) has remove
the deadlock check, and the related comments can be removed as well.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
 fs/btrfs/extent-tree.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

Comments

David Sterba Jan. 3, 2013, 4:37 p.m. UTC | #1
On Thu, Dec 27, 2012 at 05:01:17PM +0800, Liu Bo wrote:
> commit d53ba47484ed6245e640ee4bfe9d21e9bfc15765
> (Btrfs: use commit root when loading free space cache) has remove
> the deadlock check, and the related comments can be removed as well.
> 
> Signed-off-by: Liu Bo <bo.li.liu@oracle.com>

1-8
Reviewed-by: David Sterba <dsterba@suse.cz>

I'd prefer some cover letter next time as you mix cleanups and speed
optimizations (a short description stating that would suffice regarding
this patch series) or send them in separate series.

thanks,
david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 521e9d4..8540f94 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -527,12 +527,6 @@  static int cache_block_group(struct btrfs_block_group_cache *cache,
 	cache->cached = BTRFS_CACHE_FAST;
 	spin_unlock(&cache->lock);
 
-	/*
-	 * We can't do the read from on-disk cache during a commit since we need
-	 * to have the normal tree locking.  Also if we are currently trying to
-	 * allocate blocks for the tree root we can't do the fast caching since
-	 * we likely hold important locks.
-	 */
 	if (fs_info->mount_opt & BTRFS_MOUNT_SPACE_CACHE) {
 		ret = load_free_space_cache(fs_info, cache);