]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix reading inline data when i_size > PAGE_SIZE
authorYan, Zheng <zyan@redhat.com>
Sat, 10 Jan 2015 03:43:12 +0000 (11:43 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Feb 2015 10:31:39 +0000 (13:31 +0300)
commit2591a99253d732e1627b07f9f958a53815b3804a
treed41660d615642608748ebcd51a6140c96102ede0
parentb392f4c6c2df3a752fd735a03a7e4b1bdfc020a2
ceph: fix reading inline data when i_size > PAGE_SIZE

when inode has inline data but its size > PAGE_SIZE (it was truncated
to larger size), previous direct read code return -EIO. This patch adds
code to return zeros for data whose offset > PAGE_SIZE.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c
fs/ceph/file.c