Skip to content

Commit 3b5bb73

Browse files
committed
btrfs: sysfs: add free-space-tree bit attribute
The incompat bit representing the newly added free space tree feature is missing. Right now it will be listed only among features supported by the module, not per-fs. Signed-off-by: David Sterba <[email protected]>
1 parent ba2d084 commit 3b5bb73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/btrfs/sysfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ BTRFS_FEAT_ATTR_INCOMPAT(extended_iref, EXTENDED_IREF);
202202
BTRFS_FEAT_ATTR_INCOMPAT(raid56, RAID56);
203203
BTRFS_FEAT_ATTR_INCOMPAT(skinny_metadata, SKINNY_METADATA);
204204
BTRFS_FEAT_ATTR_INCOMPAT(no_holes, NO_HOLES);
205+
BTRFS_FEAT_ATTR_COMPAT_RO(free_space_tree, FREE_SPACE_TREE);
205206

206207
static struct attribute *btrfs_supported_feature_attrs[] = {
207208
BTRFS_FEAT_ATTR_PTR(mixed_backref),
@@ -213,6 +214,7 @@ static struct attribute *btrfs_supported_feature_attrs[] = {
213214
BTRFS_FEAT_ATTR_PTR(raid56),
214215
BTRFS_FEAT_ATTR_PTR(skinny_metadata),
215216
BTRFS_FEAT_ATTR_PTR(no_holes),
217+
BTRFS_FEAT_ATTR_PTR(free_space_tree),
216218
NULL
217219
};
218220

0 commit comments

Comments
 (0)