mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] befs (2/5): microoptimisation, use befs_bread() instead of befs_bread_iaddr()
@ 2004-05-13 18:21 Sergey S. Kostyliov
  0 siblings, 0 replies; only message in thread
From: Sergey S. Kostyliov @ 2004-05-13 18:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: Will Dyson

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@php4.ru>
                   Public PGP key: http://sysadminday.org.ru/rathamahata.asc


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-13 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-13 18:21 [PATCH] befs (2/5): microoptimisation, use befs_bread() instead of befs_bread_iaddr() Sergey S. Kostyliov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®