Skip to contentSkip to conversation

ceph: fix comment about short copies in ceph_write_end

PATCH New Jeff Layton 1 participant 1 message Jul 2, 2021 Ceph client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: fix comment about short copies in ceph_write_end

---
 fs/ceph/addr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/addr.c +1 -1
index a1e2813731d1..6d3f74d46e5b 100644
@@ -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;
Signature · 1 line
2.31.1