OSDN Git Service

ovl: add splice file read write helper
authorMurphy Zhou <jencce.kernel@gmail.com>
Fri, 17 Jan 2020 12:49:29 +0000 (20:49 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 24 Jan 2020 15:28:15 +0000 (16:28 +0100)
commit1a980b8cbf0059a5308eea61522f232fd03002e2
tree9b6f1e8e798a6ca77486949e4d920dac1fcc8e7d
parent2406a307ac7ddfd7effeeaff6947149ec6a95b4e
ovl: add splice file read write helper

Now overlayfs falls back to use default file splice read
and write, which is not compatiple with overlayfs, returning
EFAULT. xfstests generic/591 can reproduce part of this.

Tested this patch with xfstests auto group tests.

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/file.c