ceph: fix comment about short copies in ceph_write_end
authorJeff Layton <jlayton@kernel.org>
Mon, 14 Jun 2021 11:15:38 +0000 (07:15 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Sep 2021 20:49:16 +0000 (22:49 +0200)
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c

index a1e2813..6d3f74d 100644 (file)
@@ -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;