]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: split btrfs_fs_closing() and change return type to bool
authorDavid Sterba <dsterba@suse.com>
Tue, 6 Jan 2026 12:30:28 +0000 (13:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:51:42 +0000 (07:51 +0100)
commite582f22030a7a59d4d0bb2881371df259d4a2ecd
treee59bf4e94cd93307ae484ca88f1c5b5f8c45bc3d
parent59615e2c1f63dfd65f74c166e803873d3362e51a
btrfs: split btrfs_fs_closing() and change return type to bool

There are two tests in btrfs_fs_closing() but checking the
BTRFS_FS_CLOSING_DONE bit is done only in one place
load_extent_tree_free(). As this is an inline we can reduce size of the
generated code. The types can be also changed to bool as this becomes a
simple condition.

   text    data     bss     dec     hex filename
1674006  146704   15560 1836270  1c04ee pre/btrfs.ko
1673772  146704   15560 1836036  1c0404 post/btrfs.ko

DELTA: -234

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/fs.h