From patchwork Thu Nov 8 08:18:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolay Borisov X-Patchwork-Id: 10673673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 472D717D4 for ; Thu, 8 Nov 2018 08:18:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B1C32BDA6 for ; Thu, 8 Nov 2018 08:18:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F61E2D5A0; Thu, 8 Nov 2018 08:18:17 +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=-7.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SUBJ_OBFU_PUNCT_FEW 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 DE0F22BDA6 for ; Thu, 8 Nov 2018 08:18:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726627AbeKHRwf (ORCPT ); Thu, 8 Nov 2018 12:52:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:35032 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726509AbeKHRwd (ORCPT ); Thu, 8 Nov 2018 12:52:33 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3E1BEAE02 for ; Thu, 8 Nov 2018 08:18:12 +0000 (UTC) From: Nikolay Borisov To: linux-btrfs@vger.kernel.org Cc: Nikolay Borisov Subject: [PATCH 0/3] Cleanups following optional extent_io_ops callbacks removal Date: Thu, 8 Nov 2018 10:18:05 +0200 Message-Id: <20181108081808.16920-1-nborisov@suse.com> X-Mailer: git-send-email 2.17.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Here are 3 minor patches that further clean up writepage_delalloc. The first one moves the extent locked check in the caller of writepage_delalloc since this seems more natural. This paves the way for the second patch which removes epd as an argument to writepage_delalloc. The final patch was suggested by Josef and removes an extent_state argument which has never been used. Nikolay Borisov (3): btrfs: Move epd::extent_locked check to writepage_delalloc's caller btrfs: Remove extent_page_data argument from writepage_delalloc btrfs: Remove unused extent_state argument from btrfs_writepage_endio_finish_ordered fs/btrfs/compression.c | 6 ++++-- fs/btrfs/ctree.h | 4 ++-- fs/btrfs/extent_io.c | 36 +++++++++++++++++------------------- fs/btrfs/inode.c | 7 +++---- 4 files changed, 26 insertions(+), 27 deletions(-)