ceph: Correctly return NXIO errors from ceph_llseek
authorPhil Turnbull <phil.turnbull@oracle.com>
Thu, 21 Jul 2016 17:43:09 +0000 (13:43 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 28 Jul 2016 01:00:45 +0000 (03:00 +0200)
commit955818cd5b6c4b58ea574ace4573e7afa4c19c1e
treefc5b53a6a53a92ddaf70a4d1882c706481d5a0bd
parent6b1a9a6c54122dade800fd61e90d441e58de19eb
ceph: Correctly return NXIO errors from ceph_llseek

ceph_llseek does not correctly return NXIO errors because the 'out' path
always returns 'offset'.

Fixes: 06222e491e66 ("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>
fs/ceph/file.c