From: Kent Overstreet Date: Wed, 24 Jul 2013 23:46:42 +0000 (-0700) Subject: bcache: Don't bother with bucket refcount for btree node allocations X-Git-Tag: v3.13-rc1~68^2~1^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3b6a4e075188342b58d4b6560f5540af64cac0;p=pandora-kernel.git bcache: Don't bother with bucket refcount for btree node allocations The bucket refcount (dropped with bkey_put()) is only needed to prevent the newly allocated bucket from being garbage collected until we've added a pointer to it somewhere. But for btree node allocations, the fact that we have btree nodes locked is enough to guard against races with garbage collection. Eventually the per bucket refcount is going to be replaced with something specific to bch_alloc_sectors(). Signed-off-by: Kent Overstreet --- Reading git-diff-tree failed