]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitfcc02d2a03fc629b82d1ca1006fbd06570385264
treed41660d615642608748ebcd51a6140c96102ede0
parent86d8f67b26a8b30228b5177b7e594bbc89798a23
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