]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/btrfs/transaction.c
btrfs: use nodesize everywhere, kill leafsize
authorDavid Sterba <dsterba@suse.cz>
Wed, 4 Jun 2014 17:22:26 +0000 (19:22 +0200)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:14 +0000 (13:37 -0700)
commit707e8a071528385a87b63a72a37c2322e463c7b8
tree02fa581efa4d2a05b4e786a553cf9e88bd6274b3
parent962a298f35110edd8f326814ae41a3dd306ecb64
btrfs: use nodesize everywhere, kill leafsize

The nodesize and leafsize were never of different values. Unify the
usage and make nodesize the one. Cleanup the redundant checks and
helpers.

Shaves a few bytes from .text:

  text    data     bss     dec     hex filename
852418   24560   23112  900090   dbbfa btrfs.ko.before
851074   24584   23112  898770   db6d2 btrfs.ko.after

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
15 files changed:
fs/btrfs/backref.c
fs/btrfs/check-integrity.c
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/ioctl.c
fs/btrfs/print-tree.c
fs/btrfs/qgroup.c
fs/btrfs/reada.c
fs/btrfs/relocation.c
fs/btrfs/scrub.c
fs/btrfs/transaction.c
fs/btrfs/tree-log.c