OSDN Git Service

ext2_readdir() filp->f_pos fix
authordann frazier <dannf@debian.org>
Tue, 22 Jan 2008 00:13:06 +0000 (17:13 -0700)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Feb 2008 15:37:45 +0000 (16:37 +0100)
commitc30306fb287323591c854a0982d9fa5351859b45
tree98bd56c8e3ba4fc9ffd9d9b173f973719cde77ab
parentba8bc43468f467ef129f757fba4d122f0bf8fbc1
ext2_readdir() filp->f_pos fix

This is a 2.4 backport of a linux-2.6 change by Jan Blunck
(old-2.6-bkcvs commit 2196b4744393d4f6c06fc4d63b98556d05b90933)

Commit log from 2.6 follows.

  [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: dann frazier <dannf@hp.com>
fs/ext2/dir.c