Commit 4286d673 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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

From: "Sergey S. Kostyliov" <rathamahata@php4.ru>

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).
parent 3e9e5d09
......@@ -325,7 +325,7 @@ befs_read_inode(struct inode *inode)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment