Btrfs: Fix i_blocks accounting
authorChris Mason <chris.mason@oracle.com>
Fri, 8 Feb 2008 18:49:28 +0000 (13:49 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:00 +0000 (11:04 -0400)
commit9069218d448ea547dbad5f1cbd537e88d6519d66
treefafb142a36805f26678bb4e7a0ebe50d8c7f859a
parenta86c12c73d982c545a37a8ecdd66528ab260b770
Btrfs: Fix i_blocks accounting

Now that delayed allocation accounting works, i_blocks accounting is changed
to only modify i_blocks when extents inserted or removed.

The fillattr call is changed to include the delayed allocation byte count
in the i_blocks result.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/inode.c