summaryrefslogtreecommitdiff
path: root/inode-item.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-02 23:37:03 +0100
committerDavid Sterba <dsterba@suse.com>2016-12-14 15:06:34 +0100
commitdfbdde35fceb8540e03adda861d3e4b0deca226a (patch)
tree0a3c3051c10e43b988f45f328401ee1133b1bc86 /inode-item.c
parent2f4e20a47a91cafa79b1053c03f9e41d5fb10ccf (diff)
btrfs-progs: make incompat bit wrappers more compact
Use the same macro tricks as in kernel code. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'inode-item.c')
-rw-r--r--inode-item.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/inode-item.c b/inode-item.c
index f7b6ead5..5dd79dd3 100644
--- a/inode-item.c
+++ b/inode-item.c
@@ -106,8 +106,7 @@ out:
btrfs_free_path(path);
if (ret == -EMLINK) {
- if (btrfs_fs_incompat(root->fs_info,
- BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF))
+ if (btrfs_fs_incompat(root->fs_info, EXTENDED_IREF))
ret = btrfs_insert_inode_extref(trans, root, name,
name_len,
inode_objectid,
@@ -440,8 +439,7 @@ out:
btrfs_free_path(path);
if (search_ext_refs &&
- btrfs_fs_incompat(root->fs_info,
- BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF)) {
+ btrfs_fs_incompat(root->fs_info, EXTENDED_IREF)) {
/*
* No refs were found, or we could not find the name in our ref
* array. Find and remove the extended inode ref then.