From patchwork Tue Mar 28 05:19:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13190500 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F29A9C76195 for ; Tue, 28 Mar 2023 05:20:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231377AbjC1FUL (ORCPT ); Tue, 28 Mar 2023 01:20:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjC1FUJ (ORCPT ); Tue, 28 Mar 2023 01:20:09 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBAEF19B6 for ; Mon, 27 Mar 2023 22:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=3caGFhmGTFK+7oxblIoRhOwyO6HAik100Y0JaqZehLo=; b=F8nfdBq7HwYYmKvMZD9Uk4mylu igOTUMFB+6HxadrLZsCBe4OxluiGYgBHtEEKkm+wZyCYdElyA+xazIfubtpYQgpGaHeRUp7WRyoiP O/dtKso01qgB/fMbPBKmUmVMpWKNzC8bN8nO0TafZbbuXIth8fv25PuupquYyU1Hu780sUPLjquLb FdTFLAJPqkOo5uc8G7VWZJNv623eIN66JUzgv9kmaGt8kSDQWoSsB7JGzgi6XJRXl1e+ZsJsPownR q0kj0KeyskH7nKqN4nJ6j+1C255/qyDAnd93us/rxi3J5cMyDVhiXLRSVt/5Wf59PvvmxNXktglKa evjWypQQ==; Received: from [182.171.77.115] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1ph1kb-00DAU6-2s; Tue, 28 Mar 2023 05:20:06 +0000 From: Christoph Hellwig To: Chris Mason , Josef Bacik , David Sterba Cc: Boris Burkov , Johannes Thumshirn , Naohiro Aota , linux-btrfs@vger.kernel.org, Naohiro Aota , Johannes Thumshirn Subject: [PATCH 02/11] btrfs: pass flags as unsigned long to btrfs_add_ordered_extent Date: Tue, 28 Mar 2023 14:19:48 +0900 Message-Id: <20230328051957.1161316-3-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230328051957.1161316-1-hch@lst.de> References: <20230328051957.1161316-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Boris Burkov The ordered_extent flags are declared as unsigned long, so pass them as such to btrfs_add_ordered_extent. Signed-off-by: Boris Burkov [hch: split from a larger patch] Signed-off-by: Christoph Hellwig Reviewed-by: Naohiro Aota Tested-by: Johannes Thumshirn --- fs/btrfs/ordered-data.c | 2 +- fs/btrfs/ordered-data.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index 83a51c692406ab..1848d0d1a9c41e 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -270,7 +270,7 @@ struct btrfs_ordered_extent *btrfs_alloc_ordered_extent( */ int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, u64 num_bytes, u64 ram_bytes, u64 disk_bytenr, - u64 disk_num_bytes, u64 offset, unsigned flags, + u64 disk_num_bytes, u64 offset, unsigned long flags, int compress_type) { struct btrfs_ordered_extent *ordered; diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index c00a5a3f060fa2..18007f9c00add8 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h @@ -185,7 +185,7 @@ struct btrfs_ordered_extent *btrfs_alloc_ordered_extent( int compress_type); int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset, u64 num_bytes, u64 ram_bytes, u64 disk_bytenr, - u64 disk_num_bytes, u64 offset, unsigned flags, + u64 disk_num_bytes, u64 offset, unsigned long flags, int compress_type); void btrfs_add_ordered_sum(struct btrfs_ordered_extent *entry, struct btrfs_ordered_sum *sum);