Lines Matching refs:buf
31 static ssize_t root_blocks_used_show(struct btrfs_root *root, char *buf) in root_blocks_used_show() argument
33 return snprintf(buf, PAGE_SIZE, "%llu\n", in root_blocks_used_show()
37 static ssize_t root_block_limit_show(struct btrfs_root *root, char *buf) in root_block_limit_show() argument
39 return snprintf(buf, PAGE_SIZE, "%llu\n", in root_block_limit_show()
43 static ssize_t super_blocks_used_show(struct btrfs_fs_info *fs, char *buf) in super_blocks_used_show() argument
46 return snprintf(buf, PAGE_SIZE, "%llu\n", in super_blocks_used_show()
50 static ssize_t super_total_blocks_show(struct btrfs_fs_info *fs, char *buf) in super_total_blocks_show() argument
52 return snprintf(buf, PAGE_SIZE, "%llu\n", in super_total_blocks_show()
56 static ssize_t super_blocksize_show(struct btrfs_fs_info *fs, char *buf) in super_blocksize_show() argument
58 return snprintf(buf, PAGE_SIZE, "%llu\n", in super_blocksize_show()
105 struct attribute *attr, char *buf) in btrfs_super_attr_show() argument
113 return a->show ? a->show(fs, buf) : 0; in btrfs_super_attr_show()
118 const char *buf, size_t len) in btrfs_super_attr_store() argument
126 return a->store ? a->store(fs, buf, len) : 0; in btrfs_super_attr_store()
130 struct attribute *attr, char *buf) in btrfs_root_attr_show() argument
138 return a->show ? a->show(root, buf) : 0; in btrfs_root_attr_show()
143 const char *buf, size_t len) in btrfs_root_attr_store() argument
150 return a->store ? a->store(root, buf, len) : 0; in btrfs_root_attr_store()