btrfs: remove unused set/clear_pending_info helpers
The last users of these helpers were removed in 5297199a8b
("btrfs:
remove inode number cache feature") so delete these helpers.
The point was for mount options that were applicable after transaction
commit so they could not be applied immediately. We don't have such
options anymore and if we do the patch can be reverted.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c1b078545e
commit
d60d956eb4
@ -1661,30 +1661,6 @@ do { \
|
||||
#define btrfs_clear_pending(info, opt) \
|
||||
clear_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)
|
||||
|
||||
/*
|
||||
* Helpers for setting pending mount option changes.
|
||||
*
|
||||
* Expects corresponding macros
|
||||
* BTRFS_PENDING_SET_ and CLEAR_ + short mount option name
|
||||
*/
|
||||
#define btrfs_set_pending_and_info(info, opt, fmt, args...) \
|
||||
do { \
|
||||
if (!btrfs_raw_test_opt((info)->mount_opt, opt)) { \
|
||||
btrfs_info((info), fmt, ##args); \
|
||||
btrfs_set_pending((info), SET_##opt); \
|
||||
btrfs_clear_pending((info), CLEAR_##opt); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#define btrfs_clear_pending_and_info(info, opt, fmt, args...) \
|
||||
do { \
|
||||
if (btrfs_raw_test_opt((info)->mount_opt, opt)) { \
|
||||
btrfs_info((info), fmt, ##args); \
|
||||
btrfs_set_pending((info), CLEAR_##opt); \
|
||||
btrfs_clear_pending((info), SET_##opt); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
/*
|
||||
* Inode flags
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user