Re: [PATCH 4.19 117/118] ovl: support stacked SEEK_HOLE/SEEK_DATA

2019-06-16 Thread Pavel Machek
Hi! > --- > fs/overlayfs/file.c | 44 > 1 file changed, 40 insertions(+), 4 deletions(-) > > --- a/fs/overlayfs/file.c > +++ b/fs/overlayfs/file.c > @@ -146,11 +146,47 @@ static int ovl_release(struct inode *ino > > static loff_t ovl_llseek(struc

[PATCH 4.19 117/118] ovl: support stacked SEEK_HOLE/SEEK_DATA

2019-06-13 Thread Greg Kroah-Hartman
From: Amir Goldstein commit 9e46b840c7053b5f7a245e98cd239b60d189a96c upstream. Overlay file f_pos is the master copy that is preserved through copy up and modified on read/write, but only real fs knows how to SEEK_HOLE/SEEK_DATA and real fs may impose limitations that are more strict than ->s_ma