summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-10-07 13:14:37 +0300
committerDavid Sterba <dsterba@suse.com>2025-11-24 23:40:05 +0300
commit892794c02532b78c18bab5647675a230362cab9a (patch)
tree056d8013e0f77defe67329c3a933c06693ba525f /include/uapi/linux
parent38e818718c5e04961eea0fa8feff3f100ce40408 (diff)
downloadlinux-892794c02532b78c18bab5647675a230362cab9a.tar.xz
btrfs: use end_pos variable where needed in btrfs_dirty_folio()
We have a couple places doing the computation "pos + write_bytes" when we already have it in the local variable "end_pos". Change then to use the variable instead and make source code smaller. Also make the variable const since it's not supposed to change. This also has a very slight reduction in the module size. Before: $ size fs/btrfs/btrfs.ko text data bss dec hex filename 1915990 161647 15592 2093229 1ff0ad fs/btrfs/btrfs.ko After: $ size fs/btrfs/btrfs.ko text data bss dec hex filename 1915974 161647 15592 2093213 1ff09d fs/btrfs/btrfs.ko Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions