btrfs: add missing bytes_readonly attribute file in sysfs
authorWang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Tue, 21 Jun 2016 03:12:56 +0000 (11:12 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:52:25 +0000 (13:52 +0200)
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c

index 4879656bda3cdebefbcd6390bf6ab6597e616ac0..c6569905d3d1cc5058b7a7a67785a49d6e5d1104 100644 (file)
@@ -326,6 +326,7 @@ SPACE_INFO_ATTR(bytes_used);
 SPACE_INFO_ATTR(bytes_pinned);
 SPACE_INFO_ATTR(bytes_reserved);
 SPACE_INFO_ATTR(bytes_may_use);
+SPACE_INFO_ATTR(bytes_readonly);
 SPACE_INFO_ATTR(disk_used);
 SPACE_INFO_ATTR(disk_total);
 BTRFS_ATTR(total_bytes_pinned, btrfs_space_info_show_total_bytes_pinned);
@@ -337,6 +338,7 @@ static struct attribute *space_info_attrs[] = {
        BTRFS_ATTR_PTR(bytes_pinned),
        BTRFS_ATTR_PTR(bytes_reserved),
        BTRFS_ATTR_PTR(bytes_may_use),
+       BTRFS_ATTR_PTR(bytes_readonly),
        BTRFS_ATTR_PTR(disk_used),
        BTRFS_ATTR_PTR(disk_total),
        BTRFS_ATTR_PTR(total_bytes_pinned),