]> git.baikalelectronics.ru Git - kernel.git/commit
consistent treatment of EFAULT on O_DIRECT read/write
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 4 Oct 2016 00:38:55 +0000 (20:38 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 4 Oct 2016 00:38:55 +0000 (20:38 -0400)
commit782b2bad25eb5920660145065bb9154b6ec71248
tree8c911f14f9c22808b0f52827e562d2ff3d6dedf9
parent7893f85ba5589bfb4a6ddc1e1003bb1523ff5309
consistent treatment of EFAULT on O_DIRECT read/write

Make local filesystems treat a fault as shortened IO,
returning -EFAULT only if nothing had been transferred.
That's how everything else (NFS, FUSE, ceph, Lustre)
behaves.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/direct-io.c