From: Chris Mason Date: Wed, 2 Sep 2009 20:24:52 +0000 (-0400) Subject: Btrfs: switch extent_map to a rw lock X-Git-Tag: v2.6.32-rc1~57^2^2~26^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=890871be854b5f5e43e7ba2475f706209906cc24;p=pandora-kernel.git Btrfs: switch extent_map to a rw lock There are two main users of the extent_map tree. The first is regular file inodes, where it is evenly spread between readers and writers. The second is the chunk allocation tree, which maps blocks from logical addresses to phyiscal ones, and it is 99.99% reads. The mapping tree is a point of lock contention during heavy IO workloads, so this commit switches things to a rw lock. Signed-off-by: Chris Mason --- Reading git-diff-tree failed