diff options
author | Amir Goldstein <amir73il@gmail.com> | 2019-02-27 14:32:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-15 12:53:06 +0300 |
commit | f40c32fdfbf7c0ae98404b5b7203d2fc6bc9ad78 (patch) | |
tree | a966e66057a77f32bb99e24e8c3bda8eb23cfecf /ipc/mqueue.c | |
parent | 289e5e057bfe69008dcd5d8ee1a03a6e48529eed (diff) | |
download | linux-f40c32fdfbf7c0ae98404b5b7203d2fc6bc9ad78.tar.xz |
ovl: support stacked SEEK_HOLE/SEEK_DATA
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_maxbytes for specific
files, so we use the real file to perform seeks.
We do not call real fs for SEEK_CUR:0 query and for SEEK_SET:0
requests.
Fixes: d1d04ef8572b ("ovl: stack file ops")
Reported-by: Eddie Horng <eddiehorng.tw@gmail.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc/mqueue.c')
0 files changed, 0 insertions, 0 deletions