From dfbdde35fceb8540e03adda861d3e4b0deca226a Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 2 Nov 2016 23:37:03 +0100 Subject: btrfs-progs: make incompat bit wrappers more compact Use the same macro tricks as in kernel code. Signed-off-by: David Sterba --- inode-item.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'inode-item.c') 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. -- cgit v1.2.3