]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] reiserfs: fix is_reusable bitmap check to not traverse the bitmap info array
authorJeff Mahoney <jeffm@suse.com>
Sun, 1 Oct 2006 06:28:40 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:27 +0000 (00:39 -0700)
commitd7e92f0236aaf16b90bd77fe7ba15cb5f071affc
tree66d618e98020422874a521142ca2da797c9930f3
parent176d652914fca88ba9d4578f3d69c5a745b25fb4
[PATCH] reiserfs: fix is_reusable bitmap check to not traverse the bitmap info array

There is a check in is_reusable to determine if a particular block is a bitmap
block.  It verifies this by going through the array of bitmap block buffer
heads and comparing the block number to each one.

Bitmap blocks are at defined locations on the disk in both old and current
formats.  Simply checking against the known good values is enough.

This is a trivial optimization for a non-production codepath, but this is the
first in a series of patches that will ultimately remove the buffer heads from
that array.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/bitmap.c
fs/reiserfs/super.c
include/linux/reiserfs_fs_sb.h