diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-24 17:03:04 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-06-19 13:59:32 +0200 |
commit | dd8b7b0416704efb0dcd74801a1a48aa221f1cf5 (patch) | |
tree | 99a7aff42b738e57a256676551143d12389f3185 /fs/btrfs/bio.c | |
parent | 99f09ce309b8307ce8dca209f936e99a7c332214 (diff) |
btrfs: optimize out btrfs_is_zoned for !CONFIG_BLK_DEV_ZONED
Add an IS_ENABLED check for CONFIG_BLK_DEV_ZONED in addition to the
run-time check for the zone size. This will allow to make use of
compiler dead code elimination for code guarded by btrfs_is_zoned, and
for example provide just a dangling prototype for a function instead of
adding a stub.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/bio.c')
0 files changed, 0 insertions, 0 deletions