]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: kill BTRFS_I(inode)->block_group
authorJosef Bacik <josef@redhat.com>
Wed, 11 May 2011 19:26:06 +0000 (15:26 -0400)
committerJosef Bacik <josef@redhat.com>
Mon, 23 May 2011 17:03:12 +0000 (13:03 -0400)
commit940f2aa89958bfac4b543145e252e6b52a5b34b1
tree5738ec75f7679bdc1b97aecbc5cad3464cc65541
parent82197ab661341aad1614c53acdc3d6563e81f386
Btrfs: kill BTRFS_I(inode)->block_group

Originally this was going to be used as a way to give hints to the allocator,
but frankly we can get much better hints elsewhere and it's not even used at all
for anything usefull.  In addition to be completely useless, when we initialize
an inode we try and find a freeish block group to set as the inodes block group,
and with a completely full 40gb fs this takes _forever_, so I imagine with say
1tb fs this is just unbearable.  So just axe the thing altoghether, we don't
need it and it saves us 8 bytes in the inode and saves us 500 microseconds per
inode lookup in my testcase.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h
fs/btrfs/xattr.c