From patchwork Tue Nov 8 09:16:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhi Zhang X-Patchwork-Id: 9416975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 53C0760459 for ; Tue, 8 Nov 2016 09:17:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4570328837 for ; Tue, 8 Nov 2016 09:17:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A48C28F10; Tue, 8 Nov 2016 09:17:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFF2728837 for ; Tue, 8 Nov 2016 09:17:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932845AbcKHJRS (ORCPT ); Tue, 8 Nov 2016 04:17:18 -0500 Received: from mail-ua0-f196.google.com ([209.85.217.196]:34943 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932785AbcKHJRG (ORCPT ); Tue, 8 Nov 2016 04:17:06 -0500 Received: by mail-ua0-f196.google.com with SMTP id 50so7312913uae.2; Tue, 08 Nov 2016 01:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc; bh=pAwWY7bULaPhO4882c18qS92KgcugNfDY8XR4MvdWDc=; b=w/5envnx/SA2+bnYtG8ONpLJ1S27c0RdD351Fd/1jMKi6VqlR/F+kedx86pWnuTYJ2 qsvJZMw+ZfwoyTv8bij+sFw1fGZ6T96w3JCtkieyus/65NmaJEhPxTNElQC1InRaYCtQ u7hv+RpChCLgYxVN9ozIYXhC+v5ji+RFN+5xWd0bF27ExzrFcqt/Gq5LLsKzRA6n2bzD xGODuLqtqOgkA+4KRHOlgRh62PiTv6n00l0sxWLVggFbvTDhorfjxrCIUBCmZpS746Am mTsu98GTdjn0VgRzc+6xeHuI8QASzjkc61Z5H+CLaZ70Fh68hztHfBEChuM17BSu5EHy kmKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=pAwWY7bULaPhO4882c18qS92KgcugNfDY8XR4MvdWDc=; b=am+HSHz6nUC+ZeHEN+blozcq7+UOhBZLvORr2U4b3YoeFEhXJDar7eNROhLrvEdBsZ QE6bFBxR6HlX5GV54CjBNXTyJWD+IIPr6D6RKbOaKUjii9ysRuccKC7Yn1qRni9doBYG h3jTiuqZ/oLcapr+wXwf/y6afOITrQajO4dIA9PDbGVyMPD2KMt2f09qjxfT0Ff/hF6w 38yAJcxIwUQioPJR/nLl7BbG8wGKoVddIYFqL8mjNmju8q1MNElAxtd67WHu2y56ZyZB tdcxJV8BLtifTyjIPkz+Aj8HdDpdx+LreUzUPKVQKJLTPtWfs+8s2xc278aFplIRo0sv X2AA== X-Gm-Message-State: ABUngveKkiFWQez6EfBpxwKzZ3E+rr/gSEHo/AK2feuwXgH+OhuDkeWSgsIMaFsjHkbrnVctmmpX6wmE2XlU4Q== X-Received: by 10.176.81.56 with SMTP id e53mr7705496uaa.100.1478596624983; Tue, 08 Nov 2016 01:17:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.41.195 with HTTP; Tue, 8 Nov 2016 01:16:24 -0800 (PST) From: Zhi Zhang Date: Tue, 8 Nov 2016 17:16:24 +0800 Message-ID: Subject: [PATCH] ceph: fix printing wrong return variable in ceph_direct_read_write() To: Zheng Yan , Ilya Dryomov Cc: ceph-devel , linux-kernel@vger.kernel.org Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) flags = CEPH_OSD_FLAG_ORDERSNAP | CEPH_OSD_FLAG_ONDISK | Regards, Zhi Zhang (David) Contact: zhang.david2011@gmail.com zhangz.david@outlook.com -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);