[PATCH] befs (2/5): microoptimisation, use befs_bread() instead of befs_bread_iaddr()

From: Sergey S. Kostyliov
Date: Thu May 13 2004 - 13:39:30 EST


We already have block number (inode->i_ino), so there is no need
to calculate it from befs_block_run before sb_bread() call (this
is what befs_bread_iaddr() do).

===== fs/befs/linuxvfs.c 1.17 vs edited =====
--- 1.17/fs/befs/linuxvfs.c Thu Mar 4 18:03:10 2004
+++ edited/fs/befs/linuxvfs.c Thu May 13 12:09:56 2004
@@ -325,7 +325,7 @@
befs_ino->i_inode_num.allocation_group,
befs_ino->i_inode_num.start, befs_ino->i_inode_num.len);

- bh = befs_bread_iaddr(sb, befs_ino->i_inode_num);
+ bh = befs_bread(sb, inode->i_ino);
if (!bh) {
befs_error(sb, "unable to read inode block - "
"inode = %lu", inode->i_ino);

--
Best regards,
Sergey S. Kostyliov <rathamahata@xxxxxxx>
Public PGP key: http://sysadminday.org.ru/rathamahata.asc

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/