From patchwork Wed Nov 28 08:54:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 10702081 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 DC53B15A8 for ; Wed, 28 Nov 2018 08:55:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB5632CD61 for ; Wed, 28 Nov 2018 08:55:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC8612CE31; Wed, 28 Nov 2018 08:55:07 +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.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY 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 6812E2CD61 for ; Wed, 28 Nov 2018 08:55:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727678AbeK1Tz5 (ORCPT ); Wed, 28 Nov 2018 14:55:57 -0500 Received: from mx2.suse.de ([195.135.220.15]:44804 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727341AbeK1Tz5 (ORCPT ); Wed, 28 Nov 2018 14:55:57 -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 6A243AC15 for ; Wed, 28 Nov 2018 08:55:04 +0000 (UTC) From: Johannes Thumshirn To: David Sterba Cc: Linux BTRFS Mailinglist , Johannes Thumshirn Subject: [PATCH v2 0/3] Misc cosmetic changes for map_private_extent_buffer Date: Wed, 28 Nov 2018 09:54:53 +0100 Message-Id: <20181128085456.5702-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.4 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 While trying to understand the checksum code I came across some oddities regarding map_private_extent_buffer() and it's interaction with csum_tree_block(). These patches address them but are either purely cosmetic or only add a comment documenting behaviour. Changes to v1: * Add Reviewed-by tags * Change wording of commit message in patch 3/3 Johannes Thumshirn (3): btrfs: don't initialize 'offset' in map_private_extent_buffer() btrfs: use offset_in_page for start_offset in map_private_extent_buffer() btrfs: document extent mapping assumptions in checksum fs/btrfs/disk-io.c | 6 ++++++ fs/btrfs/extent_io.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-)