Unionfs: fix ->readdir
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 9 May 2014 18:57:41 +0000 (14:57 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 9 May 2014 18:57:41 +0000 (14:57 -0400)
commit08d8b77fec4b3f931407067cab3e2555dace04c0
tree15763dee1bd6bd2106f74c035a6152b0da96746b
parentebfe1507f78e96be0682c6886ed5e51f581726bf
Unionfs: fix ->readdir

It's enough to use llseek to set lower dir pos.  No need to also set
lower_file->f_pos directly, as it breaks readdir for ext4 and other
ext-based file systems.  Reported by Vaibhav Nagarnaik and Ted Ts'o.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/dirfops.c