Btrfs: Count space allocated to file in bytes
authorYan Zheng <zheng.yan@oracle.com>
Thu, 9 Oct 2008 15:46:29 +0000 (11:46 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 9 Oct 2008 15:46:29 +0000 (11:46 -0400)
commita76a3cd40c1127ca199d4f7f37bf0d541bf44eb2
treea91e91d9f67ce8bd314cebdacc458315d3e54275
parenta62b940160d8125016e85046e68ae621c99e751f
Btrfs: Count space allocated to file in bytes

This patch makes btrfs count space allocated to file in bytes instead
of 512 byte sectors.

Everything else in btrfs uses a byte count instead of sector sizes or
blocks sizes, so this fits better.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/tree-log.c