Btrfs: Add block group pinned accounting back
authorYan <yanzheng@21cn.com>
Fri, 16 Nov 2007 19:57:08 +0000 (14:57 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
commit324ae4df00fdc1a6a179bf584d8addf027bb75fb
tree81d6fd1c3605f998051c46596b64da431b706e89
parent5103e947b9b7ac18ddb21a04ee3486e94c6504d7
Btrfs: Add block group pinned accounting back

This patch adds a helper function 'update_pinned_extents' to
extent-tree.c. The usage of the helper function is similar to
'update_block_group',  the last parameter of the function indicates
pin vs unpin.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c