]> git.hungrycats.org Git - linux/commit
[PATCH] ext2_readdir() filp->f_pos fix
authorJan Blunck <j.blunck@tu-harburg.de>
Mon, 23 Aug 2004 05:54:59 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:54:59 +0000 (22:54 -0700)
commit44d81093cd415933bdeda20d1424cef0e2bacead
tree541e0740fb6715a94a7b870011490841b7b159eb
parent9573365038df362ee0f0de5d1c660be920746e7d
[PATCH] ext2_readdir() filp->f_pos fix

If the whole directory is read, ext2_readdir() sets the f_pos to a multiple
of the page size (because of the conditions of the outer for loop).  This
sets the wrong f_pos for directory inodes on ext2 partitions with a block
size differing from the page size.

Signed-off-by: Jan Blunck <j.blunck@tu-harburg.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext2/dir.c