]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix per root used space accounting
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:36:50 +0000 (09:36 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 17 Dec 2009 17:33:35 +0000 (12:33 -0500)
commitf3e6a823f69e0eb9663c48cb1ca9628b2d4df386
tree75dd0a52848b6f5396023f811f1a602f62b9d34e
parent81a7176c07642652b7f314edc726b6a00f5b6d10
Btrfs: Fix per root used space accounting

The bytes_used field in root item was originally planned to
trace the amount of used data and tree blocks. But it never
worked right since we can't trace freeing of data accurately.
This patch changes it to only trace the amount of tree blocks.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c
fs/btrfs/transaction.c