linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* I think I find a bug in ext3/dir.c
@ 2006-10-31 12:23 guomingyang
  2006-10-31 15:23 ` Dave Kleikamp
  0 siblings, 1 reply; 2+ messages in thread
From: guomingyang @ 2006-10-31 12:23 UTC (permalink / raw)
  To: linux-fsdevel@vger.kernel.org

Hello everyone

I think I find a bug in ext3_readdir

if (err > 0) {
			page_cache_readahead(sb->s_bdev->bd_inode->i_mapping,
				&filp->f_ra,
				filp,
				map_bh.b_blocknr >>
					(PAGE_CACHE_SHIFT - inode->i_blkbits),
				1);
			bh = ext3_bread(NULL, inode, blk, 0, &err);
		}
map_bh.b_blocknr is the physical number of a block, but page_cache_readahead need a file-relative block number, am I right?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-31 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31 12:23 I think I find a bug in ext3/dir.c guomingyang
2006-10-31 15:23 ` Dave Kleikamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).