]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: map the node block when looking for readahead targets
authorJosef Bacik <josef@redhat.com>
Wed, 11 May 2011 16:17:34 +0000 (12:17 -0400)
committerJosef Bacik <josef@redhat.com>
Mon, 23 May 2011 17:03:10 +0000 (13:03 -0400)
commit7badeb932d0238337b66b4a20a63a31c8909d2d8
tree08d112b38a1e017b563035b78861288dbf0d2fd6
parentc74083a04eca882b57e82a64c4e26f2f687b4ede
Btrfs: map the node block when looking for readahead targets

If we have particularly full nodes, we could call btrfs_node_blockptr up to 32
times, which is 32 pairs of kmap/kunmap, which _sucks_.  So go ahead and map the
extent buffer while we look for readahead targets.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ctree.c