aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.h
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2025-04-23 16:53:57 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:49 +0000
commitf963e0128b180e8ab501bf1d5772fce17c36d68f (patch)
tree31cedb1df93b43743ac2e27ddd1cd5d13900128e /fs/btrfs/dev-replace.h
parentbtrfs: subpage: reject tree blocks which are not nodesize aligned (diff)
downloadkernel-f963e0128b180e8ab501bf1d5772fce17c36d68f.tar.gz
kernel-f963e0128b180e8ab501bf1d5772fce17c36d68f.zip
btrfs: trivial conversion to return bool instead of int
Old code has a lot of int for bool return values, bool is recommended and done in new code. Convert the trivial cases that do simple 0/false and 1/true. Functions comment are updated if needed. Reviewed-by: Naohiro Aota <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.h')
-rw-r--r--fs/btrfs/dev-replace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.h b/fs/btrfs/dev-replace.h
index 23e480efe5e6..b35cecf388f2 100644
--- a/fs/btrfs/dev-replace.h
+++ b/fs/btrfs/dev-replace.h
@@ -25,7 +25,7 @@ void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
-int __pure btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);
+bool __pure btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);
bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
struct btrfs_block_group *cache,
u64 physical);