From patchwork Tue May 19 14:46:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byongho Lee X-Patchwork-Id: 6438681 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 84B78C0432 for ; Tue, 19 May 2015 14:47:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F7CD203F7 for ; Tue, 19 May 2015 14:47:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF286205DB for ; Tue, 19 May 2015 14:47:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932714AbbESOq7 (ORCPT ); Tue, 19 May 2015 10:46:59 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:34016 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932571AbbESOq5 (ORCPT ); Tue, 19 May 2015 10:46:57 -0400 Received: by pdbnk13 with SMTP id nk13so28438836pdb.1 for ; Tue, 19 May 2015 07:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=jmDjen65oaeNzgPEo29ARKBDMzCjDhrM9awz5MxLsWA=; b=vwOtS9mUnW8gguiSqha5WzeipJhatJYNA8cXt90abIxFuFnLf1iz698gFIuXIo27qP KNX8u/QMJe4y2S7OAbHdZ9sle+LrjGCxYS+Ca+2WUeXkOwNMDwS+tlpOLn/ocyt63aGs lvySsQlXOh5YHz985rT5D2resH+zU6H3yKFJgHOs5wPXcZ83p4YVESUzJgH25GOmC6G8 tmE84fHsqEwJqIEStHZAA8efNF+xc0QxK7MiQQag/1DrLfV3UNj2SDlk5DXo+sLkjYgR VXSCvvHldSfQI3ITGgpq3n1fsaw+nsLIYmxIHu20438HsR1NvGqiyi+Ad7AzmPqaRY+l XhMQ== X-Received: by 10.70.138.8 with SMTP id qm8mr54428820pdb.96.1432046817080; Tue, 19 May 2015 07:46:57 -0700 (PDT) Received: from arch-nb.localdomain ([211.40.97.131]) by mx.google.com with ESMTPSA id ms7sm13366558pdb.11.2015.05.19.07.46.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 May 2015 07:46:55 -0700 (PDT) From: Byongho Lee To: linux-btrfs@vger.kernel.org Subject: [PATCH v2] btrfs: remove unused inode argument from uncompress_inline() Date: Tue, 19 May 2015 23:46:45 +0900 Message-Id: <1432046805-6668-1-git-send-email-bhlee.kernel@gmail.com> X-Mailer: git-send-email 2.4.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The inode argument is never used from the beginning, so remove it. Change since v1: - Add missing Signed-off-by line. Signed-off-by: Byongho Lee Reviewed-by: David Sterba --- fs/btrfs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0020b56..6abd9ae 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -6565,7 +6565,7 @@ static int merge_extent_mapping(struct extent_map_tree *em_tree, } static noinline int uncompress_inline(struct btrfs_path *path, - struct inode *inode, struct page *page, + struct page *page, size_t pg_offset, u64 extent_offset, struct btrfs_file_extent_item *item) { @@ -6761,8 +6761,7 @@ next: if (create == 0 && !PageUptodate(page)) { if (btrfs_file_extent_compression(leaf, item) != BTRFS_COMPRESS_NONE) { - ret = uncompress_inline(path, inode, page, - pg_offset, + ret = uncompress_inline(path, page, pg_offset, extent_offset, item); if (ret) { err = ret;