Skip to content

Commit 6941823

Browse files
josefbacikkdave
authored andcommitted
btrfs: remove old mount API code
Now that we've switched to the new mount API, remove the old stuff. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Anand Jain <[email protected]> Acked-by: Christian Brauner <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 41d46b2 commit 6941823

File tree

3 files changed

+13
-1081
lines changed

3 files changed

+13
-1081
lines changed

fs/btrfs/fs.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -962,20 +962,6 @@ void __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag,
962962
#define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \
963963
BTRFS_MOUNT_##opt)
964964

965-
#define btrfs_set_and_info(fs_info, opt, fmt, args...) \
966-
do { \
967-
if (!btrfs_test_opt(fs_info, opt)) \
968-
btrfs_info(fs_info, fmt, ##args); \
969-
btrfs_set_opt(fs_info->mount_opt, opt); \
970-
} while (0)
971-
972-
#define btrfs_clear_and_info(fs_info, opt, fmt, args...) \
973-
do { \
974-
if (btrfs_test_opt(fs_info, opt)) \
975-
btrfs_info(fs_info, fmt, ##args); \
976-
btrfs_clear_opt(fs_info->mount_opt, opt); \
977-
} while (0)
978-
979965
static inline int btrfs_fs_closing(struct btrfs_fs_info *fs_info)
980966
{
981967
/* Do it this way so we only ever do one test_bit in the normal case. */

0 commit comments

Comments
 (0)