diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-02-08 19:49:28 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 17:04:00 +0200 |
commit | 9069218d448ea547dbad5f1cbd537e88d6519d66 (patch) | |
tree | fafb142a36805f26678bb4e7a0ebe50d8c7f859a /fs/btrfs/btrfs_inode.h | |
parent | Btrfs: Create larger bios for btree blocks (diff) | |
download | linux-9069218d448ea547dbad5f1cbd537e88d6519d66.tar.xz linux-9069218d448ea547dbad5f1cbd537e88d6519d66.zip |
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>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 9a0647dc5a0b..9b9db9cbc019 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -36,6 +36,7 @@ struct btrfs_inode { * transid of the trans_handle that last modified this inode */ u64 last_trans; + u64 delalloc_bytes; u32 flags; }; static inline struct btrfs_inode *BTRFS_I(struct inode *inode) |