]> Gentwo Git Trees - linux/.git/commit
btrfs: cache max and min order inside btrfs_fs_info
authorQu Wenruo <wqu@suse.com>
Sun, 31 Aug 2025 22:25:00 +0000 (07:55 +0930)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:17 +0000 (08:49 +0200)
commitea77a1c1c78942578a2f6995d60757c34fe50980
tree08ede81f23d6e44806b82ed2532eef15b09e6bd0
parent7425a2894019778460e65d24e8adfaeddac3b3b1
btrfs: cache max and min order inside btrfs_fs_info

Inside btrfs_fs_info we cache several bits shift like sectorsize_bits.

Apply this to max and min folio orders so that every time mapping order
needs to be applied we can skip the calculation.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/disk-io.c
fs/btrfs/fs.h