ceph: fix comment about short copies in ceph_write_end
Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
2ad32cf09b
commit
ce3a8732ae
@ -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,
|
dout("write_end file %p inode %p page %p %d~%d (%d)\n", file,
|
||||||
inode, page, (int)pos, (int)copied, (int)len);
|
inode, page, (int)pos, (int)copied, (int)len);
|
||||||
|
|
||||||
/* zero the stale part of the page if we did a short copy */
|
|
||||||
if (!PageUptodate(page)) {
|
if (!PageUptodate(page)) {
|
||||||
|
/* just return that nothing was copied on a short copy */
|
||||||
if (copied < len) {
|
if (copied < len) {
|
||||||
copied = 0;
|
copied = 0;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user