From: Jeff Layton Date: Mon, 14 Jun 2021 11:15:38 +0000 (-0400) Subject: ceph: fix comment about short copies in ceph_write_end X-Git-Tag: accepted/tizen/unified/20230118.172025~6426^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce3a8732ae0d43a6d14aa24624c0f12b3e6281b9;p=platform%2Fkernel%2Flinux-rpi.git ceph: fix comment about short copies in ceph_write_end Signed-off-by: Jeff Layton Reviewed-by: Ilya Dryomov Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index a1e2813..6d3f74d 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -1281,8 +1281,8 @@ static int ceph_write_end(struct file *file, struct address_space *mapping, dout("write_end file %p inode %p page %p %d~%d (%d)\n", file, inode, page, (int)pos, (int)copied, (int)len); - /* zero the stale part of the page if we did a short copy */ if (!PageUptodate(page)) { + /* just return that nothing was copied on a short copy */ if (copied < len) { copied = 0; goto out;