diff options
author | Jeff Mahoney <jeffm@suse.com> | 2006-10-01 02:28:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:27 -0400 |
commit | e1fabd3ccf02901374bffa434e0af472749a5bd9 (patch) | |
tree | 66d618e98020422874a521142ca2da797c9930f3 /include/linux/reiserfs_fs_sb.h | |
parent | 8ef386092d7c2891bd7acefb2a87f878f7e9a0d6 (diff) |
[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>
Diffstat (limited to 'include/linux/reiserfs_fs_sb.h')
-rw-r--r-- | include/linux/reiserfs_fs_sb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/reiserfs_fs_sb.h b/include/linux/reiserfs_fs_sb.h index 31b4c0bd4fa0..4f21ad388c79 100644 --- a/include/linux/reiserfs_fs_sb.h +++ b/include/linux/reiserfs_fs_sb.h | |||
@@ -414,6 +414,7 @@ struct reiserfs_sb_info { | |||
414 | /* Definitions of reiserfs on-disk properties: */ | 414 | /* Definitions of reiserfs on-disk properties: */ |
415 | #define REISERFS_3_5 0 | 415 | #define REISERFS_3_5 0 |
416 | #define REISERFS_3_6 1 | 416 | #define REISERFS_3_6 1 |
417 | #define REISERFS_OLD_FORMAT 2 | ||
417 | 418 | ||
418 | enum reiserfs_mount_options { | 419 | enum reiserfs_mount_options { |
419 | /* Mount options */ | 420 | /* Mount options */ |