Unionfs: fix ->readdir
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 9 May 2014 18:58:20 +0000 (14:58 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 16:07:46 +0000 (11:07 -0500)
commitf415875718cf90523c3f5a253ce5c6be9f37c749
tree3a751bb314ec7d5f56393a31238c9b2ba5a0038e
parentee433e44d069228e97384cefcd8aedb5a7936168
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