Re: I think I find a bug in ext3/dir.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2006-10-31 at 20:23 +0800, guomingyang wrote:
> 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?

This is true, but the block-device inode, bd_inode, is trivially mapped
such that the physical block and the logical block are the same.  So
it's not a bug.  Directories don't have a logical mapping.  They use the
block device's address space.
-- 
David Kleikamp
IBM Linux Technology Center

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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux