diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:15:53 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | db94535db75e67fab12ccbb7f5ee548e33fed891 (patch) | |
tree | 1ad7dfc82b003294a94ee87d7329b24b902b369f /fs/btrfs/sysfs.c | |
parent | 1a5bc167f6707542b79a55452075525620ed43f5 (diff) |
Btrfs: Allow tree blocks larger than the page size
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r-- | fs/btrfs/sysfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 9654e90eec89..0bd1fd3d29df 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c | |||
@@ -42,14 +42,15 @@ static ssize_t root_block_limit_show(struct btrfs_root *root, char *buf) | |||
42 | 42 | ||
43 | static ssize_t super_blocks_used_show(struct btrfs_fs_info *fs, char *buf) | 43 | static ssize_t super_blocks_used_show(struct btrfs_fs_info *fs, char *buf) |
44 | { | 44 | { |
45 | |||
45 | return snprintf(buf, PAGE_SIZE, "%llu\n", | 46 | return snprintf(buf, PAGE_SIZE, "%llu\n", |
46 | (unsigned long long)btrfs_super_blocks_used(&fs->super_copy)); | 47 | (unsigned long long)btrfs_super_bytes_used(&fs->super_copy)); |
47 | } | 48 | } |
48 | 49 | ||
49 | static ssize_t super_total_blocks_show(struct btrfs_fs_info *fs, char *buf) | 50 | static ssize_t super_total_blocks_show(struct btrfs_fs_info *fs, char *buf) |
50 | { | 51 | { |
51 | return snprintf(buf, PAGE_SIZE, "%llu\n", | 52 | return snprintf(buf, PAGE_SIZE, "%llu\n", |
52 | (unsigned long long)btrfs_super_total_blocks(&fs->super_copy)); | 53 | (unsigned long long)btrfs_super_total_bytes(&fs->super_copy)); |
53 | } | 54 | } |
54 | 55 | ||
55 | static ssize_t super_blocksize_show(struct btrfs_fs_info *fs, char *buf) | 56 | static ssize_t super_blocksize_show(struct btrfs_fs_info *fs, char *buf) |