Once we've replaced it, we don't want to keep the old one around anymore. Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> --- fs/ceph/addr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 01ad09733ac7..01e167efa104 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -1212,6 +1212,7 @@ static int ceph_writepages_start(struct address_space *mapping, locked_pages * sizeof(*pages)); memset(data_pages + i, 0, locked_pages * sizeof(*pages)); + kfree(data_pages); } else { BUG_ON(num_ops != req->r_num_ops); index = pages[i - 1]->index + 1; -- 2.26.2