-
Phil Turnbull authored
commit 955818cd upstream. ceph_llseek does not correctly return NXIO errors because the 'out' path always returns 'offset'. Fixes: 06222e49 ("fs: handle SEEK_HOLE/SEEK_DATA properly in all fs's that define their own llseek") Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com> Signed-off-by: Yan, Zheng <zyan@redhat.com> [bwh: Backported to 3.2: - We don't use vfs_setpos(); instead set ret = -EINVAL or ret = offset directly - Adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
7334e0ad