aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2023-03-30 10:43:51 +0000
committerDavid Sterba <[email protected]>2023-04-17 16:01:20 +0000
commitcf32e41fa5f4fb88e4b4acf9cbf3acf9ac362553 (patch)
tree0b56470329bb47f069ef70303844290e24314e55 /fs/btrfs/ordered-data.c
parentbtrfs: use __bio_add_page for adding a single page in repair_one_sector (diff)
downloadkernel-cf32e41fa5f4fb88e4b4acf9cbf3acf9ac362553.tar.gz
kernel-cf32e41fa5f4fb88e4b4acf9cbf3acf9ac362553.zip
btrfs: use __bio_add_page to add single a page in rbio_add_io_sector
The btrfs raid56 sector submission code uses bio_add_page() to add a page to a newly created bio. bio_add_page() can fail, but the return value is never checked. Use __bio_add_page() as adding a single page to a newly created bio is guaranteed to succeed. This brings us a step closer to marking bio_add_page() as __must_check. Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions