From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5DA53ABDA4; Tue, 16 Jun 2026 14:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781618931; cv=none; b=byFj2KSAs3jtatN2lUcEGiGqqadnR5+lGjKhLsfneQxWkoF9t4xUJD+ciQHPphCNP4CFi5v0PIDeItkKlQy+NbaykPbfz0zPcUyb6mPT/zmFARHnNv1+a80Rogjj3C48Yh1JVfy5iCZwkvvioFnEBlbs94JFWeoMJQMoFVF4Qu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781618931; c=relaxed/simple; bh=W0e283i/NPdnGyczxuKoL2hh/y1kkMtU22l4mrq4nMk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=juVxCGpCJtgZgzyW6RiPjmV/3cUr9jDOlpaG1AHG30L1QqKtce//591k4jkT59rkyyGWKv9Lx0WyfN0NaeRlG/SYJyXBZ7Mz+Ye1znbkmQ9dvEYuYz3xErVuGlw7ByHtv0C6NY/wl69XTqNBjg/wQgSNcGpnI+1pgGqnGmOJEDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XasbeRe8; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XasbeRe8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 087981F00ACA; Tue, 16 Jun 2026 14:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781618930; bh=Jpn/L9xcaTdyM2ThetgELvjl4xXtdXDakn1/zaaFINs=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=XasbeRe8OkjGBVexzq6zTIkmg/re74y42Zvv2USF/F3cgfnj9CjjCvuAlH6rGlwD2 kRMl6g+ZMFHOg66znaAQ1UtXHBozcTo1wRUznpibHHc3H5zJ6MxcZyWtLSN16pzS0f 5Y8BZ7fOMavOEBv5f7nU/DcID4xz5IZ7RBw0MbUSkX3k9878XLjHER4bFiZub3/OvF 6Nzh619SBEbkCefFqXnszALnon4sL7BJ99e15Lc5t/JROEbsN7HmrneH5WkxdWNwei f16pAn7lUXznyYZKOux/KAY2Xkgzof8rVzfb8NfGvTZwgUwWVNTu2M131pS30BimMB GjwwIO+E2gvVQ== From: Christian Brauner Date: Tue, 16 Jun 2026 16:08:20 +0200 Subject: [PATCH RFC v2 04/18] fs, block: move blk_mode_t and fop_flags_t into Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260616-work-super-bdev_holder_global-v2-4-7df6b864028e@kernel.org> References: <20260616-work-super-bdev_holder_global-v2-0-7df6b864028e@kernel.org> In-Reply-To: <20260616-work-super-bdev_holder_global-v2-0-7df6b864028e@kernel.org> To: Jan Kara Cc: Christoph Hellwig , Jens Axboe , Alexander Viro , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Carlos Maiolino , linux-xfs@vger.kernel.org, Chris Mason , David Sterba , linux-btrfs@vger.kernel.org, Theodore Ts'o , linux-ext4@vger.kernel.org, Gao Xiang , linux-erofs@lists.ozlabs.org, "Christian Brauner (Amutable)" X-Mailer: b4 0.16-dev-4090c X-Developer-Signature: v=1; a=openpgp-sha256; l=1800; i=brauner@kernel.org; h=from:subject:message-id; bh=W0e283i/NPdnGyczxuKoL2hh/y1kkMtU22l4mrq4nMk=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMWQZRtzzMlaJ+nInff8J+WaFDmtvtU39m447cOk2x25Ra pdu+xrXUcrCIMbFICumyOLQbhIut5ynYrNRpgbMHFYmkCEMXJwCMJGGlwx/JS0F5rQknQ05InC6 Wm/q6iYGo9ta935e/LaDw0p+dfp+KUaGDpOSp3PZm9tm2xkZP9f20WNmnsPou73CrVjsxGu/jON 8AA== X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 blk_mode_t and fop_flags_t are both plain 'unsigned int __bitwise' flag typedefs, exactly like the gfp_t, slab_flags_t and fmode_t that already live in . Move them there so they are available everywhere without having to drag in a subsystem header. Reviewed-by: Jan Kara Signed-off-by: Christian Brauner (Amutable) --- include/linux/blkdev.h | 2 -- include/linux/fs.h | 2 -- include/linux/types.h | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 9e95bdb8b323..cee548184a7b 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -126,8 +126,6 @@ struct blk_integrity { unsigned char pi_tuple_size; }; -typedef unsigned int __bitwise blk_mode_t; - /* open for reading */ #define BLK_OPEN_READ ((__force blk_mode_t)(1 << 0)) /* open for writing */ diff --git a/include/linux/fs.h b/include/linux/fs.h index 6da44573ce45..1c8fe40ad9a4 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1921,8 +1921,6 @@ struct dir_context { struct io_uring_cmd; struct offset_ctx; -typedef unsigned int __bitwise fop_flags_t; - struct file_operations { struct module *owner; fop_flags_t fop_flags; diff --git a/include/linux/types.h b/include/linux/types.h index 608050dbca6a..ef026585420b 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -163,6 +163,8 @@ typedef u32 dma_addr_t; typedef unsigned int __bitwise gfp_t; typedef unsigned int __bitwise slab_flags_t; typedef unsigned int __bitwise fmode_t; +typedef unsigned int __bitwise blk_mode_t; +typedef unsigned int __bitwise fop_flags_t; #ifdef CONFIG_PHYS_ADDR_T_64BIT typedef u64 phys_addr_t; -- 2.47.3