diff options
| author | David Sterba <[email protected]> | 2025-04-23 16:53:57 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:49 +0000 |
| commit | f963e0128b180e8ab501bf1d5772fce17c36d68f (patch) | |
| tree | 31cedb1df93b43743ac2e27ddd1cd5d13900128e /fs/btrfs/super.c | |
| parent | btrfs: subpage: reject tree blocks which are not nodesize aligned (diff) | |
| download | kernel-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/super.c')
| -rw-r--r-- | fs/btrfs/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 7d7001ad9529..a8d2c2ca3120 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1152,11 +1152,11 @@ static int btrfs_show_options(struct seq_file *seq, struct dentry *dentry) /* * subvolumes are identified by ino 256 */ -static inline int is_subvolume_inode(struct inode *inode) +static inline bool is_subvolume_inode(struct inode *inode) { if (inode && inode->i_ino == BTRFS_FIRST_FREE_OBJECTID) - return 1; - return 0; + return true; + return false; } static struct dentry *mount_subvol(const char *subvol_name, u64 subvol_objectid, |
