befs (2/5): microoptimisation, use befs_bread() instead of befs_bread_iaddr()
PATCH 1/1 befs (2/5): microoptimisation, use befs_bread() instead of befs_bread_iaddr()
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 =====
fs/befs/linuxvfs.c +1 -1
@@ -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);
Signature · 3 lines
Best regards,
Sergey S. Kostyliov <[email protected]>
Public PGP key: http://sysadminday.org.ru/rathamahata.asc