ANDROID: sdcardfs: fix ->llseek to update upper and lower offset
authorDaniel Rosenberg <drosen@google.com>
Fri, 10 Mar 2017 05:42:01 +0000 (21:42 -0800)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:08 +0000 (19:40 -0800)
commit3c5ff6cce9777c6da2bce04158251d3fa0ebf581
treecb789eac629e6dcc90044adb7c7db187c5c89b7c
parentb74adc48e5c1bf6fffcff7e71602fa0cb8be77ef
ANDROID: sdcardfs: fix ->llseek to update upper and lower offset

Adapted from wrapfs
commit 1d1d23a47baa ("Wrapfs: fix ->llseek to update upper and lower
offsets")

Fixes bug: xfstests generic/257. f_pos consistently is required by and
only by dir_ops->wrapfs_readdir, main_ops is not affected.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Mengyang Li <li.mengyang@stonybrook.edu>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 35766959
Change-Id: I360a1368ac37ea8966910a58972b81504031d437
fs/sdcardfs/file.c