aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r--fs/btrfs/sysfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index 2058783373eb..9654e90eec89 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -31,31 +31,31 @@
31static ssize_t root_blocks_used_show(struct btrfs_root *root, char *buf) 31static ssize_t root_blocks_used_show(struct btrfs_root *root, char *buf)
32{ 32{
33 return snprintf(buf, PAGE_SIZE, "%llu\n", 33 return snprintf(buf, PAGE_SIZE, "%llu\n",
34 (unsigned long long)btrfs_root_blocks_used(&root->root_item)); 34 (unsigned long long)btrfs_root_used(&root->root_item));
35} 35}
36 36
37static ssize_t root_block_limit_show(struct btrfs_root *root, char *buf) 37static ssize_t root_block_limit_show(struct btrfs_root *root, char *buf)
38{ 38{
39 return snprintf(buf, PAGE_SIZE, "%llu\n", 39 return snprintf(buf, PAGE_SIZE, "%llu\n",
40 (unsigned long long)btrfs_root_block_limit(&root->root_item)); 40 (unsigned long long)btrfs_root_limit(&root->root_item));
41} 41}
42 42
43static ssize_t super_blocks_used_show(struct btrfs_fs_info *fs, char *buf) 43static ssize_t super_blocks_used_show(struct btrfs_fs_info *fs, char *buf)
44{ 44{
45 return snprintf(buf, PAGE_SIZE, "%llu\n", 45 return snprintf(buf, PAGE_SIZE, "%llu\n",
46 (unsigned long long)btrfs_super_blocks_used(fs->disk_super)); 46 (unsigned long long)btrfs_super_blocks_used(&fs->super_copy));
47} 47}
48 48
49static ssize_t super_total_blocks_show(struct btrfs_fs_info *fs, char *buf) 49static ssize_t super_total_blocks_show(struct btrfs_fs_info *fs, char *buf)
50{ 50{
51 return snprintf(buf, PAGE_SIZE, "%llu\n", 51 return snprintf(buf, PAGE_SIZE, "%llu\n",
52 (unsigned long long)btrfs_super_total_blocks(fs->disk_super)); 52 (unsigned long long)btrfs_super_total_blocks(&fs->super_copy));
53} 53}
54 54
55static ssize_t super_blocksize_show(struct btrfs_fs_info *fs, char *buf) 55static ssize_t super_blocksize_show(struct btrfs_fs_info *fs, char *buf)
56{ 56{
57 return snprintf(buf, PAGE_SIZE, "%llu\n", 57 return snprintf(buf, PAGE_SIZE, "%llu\n",
58 (unsigned long long)btrfs_super_blocksize(fs->disk_super)); 58 (unsigned long long)btrfs_super_sectorsize(&fs->super_copy));
59} 59}
60 60
61/* this is for root attrs (subvols/snapshots) */ 61/* this is for root attrs (subvols/snapshots) */