Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752258AbcKHNsY (ORCPT ); Tue, 8 Nov 2016 08:48:24 -0500 Received: from mail-ua0-f194.google.com ([209.85.217.194]:34286 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbcKHNsW (ORCPT ); Tue, 8 Nov 2016 08:48:22 -0500 MIME-Version: 1.0 In-Reply-To: References: From: Ilya Dryomov Date: Tue, 8 Nov 2016 14:48:21 +0100 Message-ID: Subject: Re: [PATCH] ceph: fix printing wrong return variable in ceph_direct_read_write() To: Zhi Zhang Cc: Zheng Yan , ceph-devel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1112 Lines: 34 On Tue, Nov 8, 2016 at 10:16 AM, Zhi Zhang wrote: > Fix printing wrong return variable for invalidate_inode_pages2_range > in ceph_direct_read_write(). > > Signed-off-by: Zhi Zhang > --- > fs/ceph/file.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ceph/file.c b/fs/ceph/file.c > index 18630e8..0136195 100644 > --- a/fs/ceph/file.c > +++ b/fs/ceph/file.c > @@ -906,7 +906,7 @@ void ceph_sync_write_wait(struct inode *inode) > pos >> PAGE_SHIFT, > (pos + count) >> PAGE_SHIFT); > if (ret2 < 0) > - dout("invalidate_inode_pages2_range returned > %d\n", ret); > + dout("invalidate_inode_pages2_range returned > %d\n", ret2); > > flags = CEPH_OSD_FLAG_ORDERSNAP | > CEPH_OSD_FLAG_ONDISK | > Applied. (This is mangled, and had to be applied manually. Check out Documentation/email-clients.txt in the kernel tree.) Thanks, Ilya