summaryrefslogtreecommitdiff
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-06-03 08:57:25 +0200
committerDavid Sterba <dsterba@suse.com>2022-07-25 17:45:34 +0200
commita4012f06f188b51a69a1f31f0fa10f37e671cebb (patch)
tree8a2a32253352a2d3137d7d899b22b7aacbf0502d /fs/btrfs/sysfs.c
parent5eecef7108350f6506a55d8fd9508ea32caeecad (diff)
btrfs: split discard handling out of btrfs_map_block
Mapping block for discard doesn't really share any code with the regular block mapping case. Split it out into an entirely separate helper that just returns an array of btrfs_discard_stripe structures and the number of stripes. This removes the need for the length field in the btrfs_io_context structure, so remove tht. Reviewed-by: Nikolay Borisov <nborisov@suse.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/sysfs.c')
0 files changed, 0 insertions, 0 deletions