mbox series

[0/2] btrfs: optimize btrfs_ino()

Message ID cover.1657549024.git.fdmanana@suse.com (mailing list archive)
Headers show
Series btrfs: optimize btrfs_ino() | expand

Message

Filipe Manana July 11, 2022, 2:22 p.m. UTC
From: Filipe Manana <fdmanana@suse.com>

The following patchset optimizes btrfs_ino(), an inline function that is
used pretty much everywhere, to avoid doing less work and be trivial on
64 bits systems. Details on the changelogs of the patches.

Filipe Manana (2):
  btrfs: set the objectid of the btree inode's location key
  btrfs: add optimized btrfs_ino() version for 64 bits systems

 fs/btrfs/btrfs_inode.h       | 22 +++++++++++++++++-----
 fs/btrfs/disk-io.c           |  4 +++-
 fs/btrfs/tests/btrfs-tests.c |  1 +
 3 files changed, 21 insertions(+), 6 deletions(-)

Comments

David Sterba July 11, 2022, 5:03 p.m. UTC | #1
On Mon, Jul 11, 2022 at 03:22:48PM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
> 
> The following patchset optimizes btrfs_ino(), an inline function that is
> used pretty much everywhere, to avoid doing less work and be trivial on
> 64 bits systems. Details on the changelogs of the patches.
> 
> Filipe Manana (2):
>   btrfs: set the objectid of the btree inode's location key
>   btrfs: add optimized btrfs_ino() version for 64 bits systems

Great, thanks. The module size on a release build is -7k.