diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-03-20 21:53:16 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:24 +0200 |
commit | 6a8d2136ca3f0ed597d9f3dffa3821dd6bc7b11a (patch) | |
tree | b04ab7976a816d4eff807b59edc90571e2b4b5d5 /fs/btrfs/relocation.c | |
parent | a2a72fbd1110323b2008dcb3ed14494957341dfe (diff) | |
download | lwn-6a8d2136ca3f0ed597d9f3dffa3821dd6bc7b11a.tar.gz lwn-6a8d2136ca3f0ed597d9f3dffa3821dd6bc7b11a.zip |
btrfs: Use less confusing condition for uptodate parameter to btrfs_writepage_endio_finish_ordered
The uptodate parameter of btrfs_writepage_endio_finish_ordered is used
to signal whether an error has occured while writing the given page.
0 signals an error, which is propagated to callees and 1 signifies
success. In end_compressed_bio_write the ->bi_status is checked and
based on it either BLK_STS_OK (0) or BLK_STS_NOTSUPP (1) are used. While
from functional point of view this is ok it's a for the poor reader of
the code, since the block layer values are conflated with the semantics
of the parameter.
Just use plain 0 or 1. No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
0 files changed, 0 insertions, 0 deletions