Skip to content

Tree and inode lookup cleanups

David Sterba linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: simplify root lookup by idfs/btrfs/backref.c fs/btrfs/disk-io.c fs/btrfs/disk-io.h +12 more+44 -1110 replies
2/3btrfs: open code read_fs_rootfs/btrfs/relocation.c+12 -150 replies
3/3btrfs: simplify iget helpersfs/btrfs/ctree.h fs/btrfs/export.c fs/btrfs/file.c +8 more+44 -810 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Tree and inode lookup cleanups

Simplify functions that take struct key for lookup but don't use all the members. Reduces size of .ko by about 1.2K and stack consumption is reduced by 450 bytes in total.

David Sterba (3):
btrfs: simplify root lookup by id
btrfs: open code read_fs_root
btrfs: simplify iget helpers

 fs/btrfs/backref.c          | 13 ++---------
 fs/btrfs/ctree.h            |  5 ++--
 fs/btrfs/disk-io.c          | 35 +++++++++++++---------------
 fs/btrfs/disk-io.h          |  3 +--
 fs/btrfs/export.c           | 17 +++-----------
 fs/btrfs/file.c             | 12 ++--------
 fs/btrfs/free-space-cache.c |  2 +-
 fs/btrfs/inode.c            | 42 +++++++++++++++++----------------
 fs/btrfs/ioctl.c            | 30 ++++++------------------
 fs/btrfs/props.c            |  9 ++------
 fs/btrfs/relocation.c       | 46 +++++++++++--------------------------
 fs/btrfs/root-tree.c        | 12 ++++------
 fs/btrfs/scrub.c            |  6 +----
 fs/btrfs/send.c             | 22 ++++--------------
 fs/btrfs/super.c            | 11 ++-------
 fs/btrfs/transaction.c      |  2 +-
 fs/btrfs/tree-log.c         | 32 ++++++++++----------------
 fs/btrfs/uuid-tree.c        |  6 +----
 18 files changed, 99 insertions(+), 206 deletions(-)
Signature · 1 line
2.25.0