Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750967AbbLUENO (ORCPT ); Sun, 20 Dec 2015 23:13:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38682 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802AbbLUENN convert rfc822-to-8bit (ORCPT ); Sun, 20 Dec 2015 23:13:13 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: [PATCH] ceph: Avoid to propagate the invalid page point From: "Yan, Zheng" In-Reply-To: <1450493699-20983-1-git-send-email-mnfhuang@gmail.com> Date: Mon, 21 Dec 2015 12:12:52 +0800 Cc: sage@redhat.com, idryomov@gmail.com, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, mhuang@redhat.com Content-Transfer-Encoding: 8BIT Message-Id: <801FE0B8-0193-429D-8BB0-E505DDF22E36@redhat.com> References: <1450493699-20983-1-git-send-email-mnfhuang@gmail.com> To: Minfei Huang Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 40 > On Dec 19, 2015, at 10:54, Minfei Huang wrote: > > The variant pagep will still get the invalid page point, although ceph > fails in function ceph_update_writeable_page. > > To fix this issue, Assigne the page to pagep until there is no failure > in function ceph_update_writeable_page. > > Signed-off-by: Minfei Huang > --- > fs/ceph/addr.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c > index b7d218a..6491079 100644 > --- a/fs/ceph/addr.c > +++ b/fs/ceph/addr.c > @@ -1149,7 +1149,6 @@ static int ceph_write_begin(struct file *file, struct address_space *mapping, > page = grab_cache_page_write_begin(mapping, index, 0); > if (!page) > return -ENOMEM; > - *pagep = page; > > dout("write_begin file %p inode %p page %p %d~%d\n", file, > inode, page, (int)pos, (int)len); applied, thanks Yan, Zheng > -- > 2.6.3 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/