]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - fs/ceph/addr.c
Merge tag 'ceph-for-5.15-rc1' of git://github.com/ceph/ceph-client
[mirror_ubuntu-jammy-kernel.git] / fs / ceph / addr.c
index 7e7a897ae0d3f5ac58fc9042e6b44925b5dbbceb..99b80b5c7a931c1d6418e40c2f5a17713f638e22 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;