From patchwork Mon Jan 19 06:15:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1628 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803444; bh=3gPdxsVfslb5FMLHZ/mZQYw8qboE4Mfioo6yvmRczFo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=QKp8fsv6nR3lZ6Bc9a72bM8H0h4rf7vFuii0XS0LvaRsABj574pH0RVvElrsZNlVS undthASD1tKu7edZ1CLLewzMijylqhz3qWFD8PpI9EoZ1UXThLYdx3eaGdATCWPk8Z waEl1Bb/CMvYJ11G89O7iGXtCZUTtKTKfdKPegvafkXq5sr3eLCTWC/oMhV2Y1NjLw u8L2Ws+unxwxvT5xNF9YpgdDKB9EDmYTEnzYbqOMcJcO+h4mAsjt/lOcQd12vizxj/ O0ZauPp2A5QqS5mMFiYDyEl5aTXBG/6cYRJbF/Jjf3DdZdUtBO9Od1+L3mYm0HzRFO mTwSDa9tBij/A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C542A694E1 for ; Sun, 18 Jan 2026 23:17:24 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id AxeA3xvfcp9r for ; Sun, 18 Jan 2026 23:17:24 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803444; bh=3gPdxsVfslb5FMLHZ/mZQYw8qboE4Mfioo6yvmRczFo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=QKp8fsv6nR3lZ6Bc9a72bM8H0h4rf7vFuii0XS0LvaRsABj574pH0RVvElrsZNlVS undthASD1tKu7edZ1CLLewzMijylqhz3qWFD8PpI9EoZ1UXThLYdx3eaGdATCWPk8Z waEl1Bb/CMvYJ11G89O7iGXtCZUTtKTKfdKPegvafkXq5sr3eLCTWC/oMhV2Y1NjLw u8L2Ws+unxwxvT5xNF9YpgdDKB9EDmYTEnzYbqOMcJcO+h4mAsjt/lOcQd12vizxj/ O0ZauPp2A5QqS5mMFiYDyEl5aTXBG/6cYRJbF/Jjf3DdZdUtBO9Od1+L3mYm0HzRFO mTwSDa9tBij/A== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B4772694CE for ; Sun, 18 Jan 2026 23:17:24 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803442; bh=RjUHX0xMyf4z/ANbJa3fA5bhEFBY+EzKVPLBp9A62QM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XV7BZ8+hfFZT2YAyL2jYn8KLPxFFzbG/nsnbJeKs4oEPM1zFPpLZJ4Vo1+Du32Kfh NHgXy+Qh9OD9UL0HgKO+jIv5qoeyxdEvnpijhe0PpUfZO+m+jXMWx6zg3rv+++kJkA VFh+bLaBYjDndE+pUWIhBpGhWrEBKBeX2H6WK61jmLOd6AkKsDp/41h/Hj3TXWOwju isvoQc4ShbYWA1pGhv3JtQ6aQLt8zSi3WTiU7pojb/EOqnVTllakGbCE3u255hoEYH qCu+heRJmNoce6GlQCR4jbqQ/uqSUiYF0KewCbx3r5UG1k2yrIlDcEWVOenBriv1pt wEYYVz6DYGYUA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BBF22694CE; Sun, 18 Jan 2026 23:17:22 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id sZwIEyZ_2V2I; Sun, 18 Jan 2026 23:17:22 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803438; bh=/Vs9KiWF3rxRAihjGW1Dt2o70sTvsYT3NeG/4oEJa/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pbga/Eq24eDaywGYVDfGrHi9o8gfw4GkZF70BvvwFxhEH86hsTlP90O3NWBqa3M27 dndpYAM66UDW3x0h99dqoaq7KugX89bdlNYN1J9pIhr+iNnEAQT6LvOLpwQjklt0fh 6P8GajJCO9MdZGh7vmetu0657I28m2jLB9YcZEJr6jw3Cs9+EPBuGYAH7FZBQjV4yH wv5jjDS5+pf2pwYPBDxKBiREzRDeN/wbyqNgg0ERO+MQJbJXjbFs/q6s7a2FIB5Icm M6tQb+/F/mV20gkddAPjtazdixVhK3oqZ/HCmyb0ZOkQ9iZ++zWuK4Q2VJzUQuYzYy BqOVHVlQsGLVQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 772C6694C0; Sun, 18 Jan 2026 23:17:18 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sun, 18 Jan 2026 23:15:19 -0700 Message-ID: <20260119061529.3383191-22-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260119061529.3383191-1-sjg@u-boot.org> References: <20260119061529.3383191-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 6FWIAMMQHA233QXPVFMF64TUV5NLC6KX X-Message-ID-Hash: 6FWIAMMQHA233QXPVFMF64TUV5NLC6KX X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 21/23] ext4l: Move PF_MEMALLOC flags to linux/sched.h List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Move the process flags (PF_MEMALLOC, PF_MEMALLOC_NOFS) to include/linux/sched.h where they belong with other task_struct-related definitions, matching Linux kernel organisation. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 8 ++------ include/linux/sched.h | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 206bf4d784f..0a1b7406127 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -493,8 +493,7 @@ static inline int bdev_read_only(struct block_device *bdev) /* Forward declaration for swap */ struct swap_info_struct; -/* Process flags */ -#define PF_MEMALLOC 0x00000800 +/* PF_MEMALLOC is in linux/sched.h */ /* Forward declarations for inode operations */ struct inode_operations; @@ -1354,10 +1353,7 @@ static inline void super_set_uuid(struct super_block *sb, const u8 *uuid, /* Nested inode locking stub */ #define inode_lock_nested(i, c) do { (void)(i); (void)(c); } while (0) -/* Process flags */ -#ifndef PF_MEMALLOC_NOFS -#define PF_MEMALLOC_NOFS 0x00040000 -#endif +/* PF_MEMALLOC_NOFS is in linux/sched.h */ /* generic_set_sb_d_ops, d_make_root are now in linux/dcache.h */ diff --git a/include/linux/sched.h b/include/linux/sched.h index ff36a6443c8..579468ee414 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -16,6 +16,10 @@ struct io_context { unsigned int ioprio; }; +/* Process flags */ +#define PF_MEMALLOC 0x00000800 /* Allocating memory */ +#define PF_MEMALLOC_NOFS 0x00040000 /* GFP_NOFS allocations */ + struct task_struct { int pid; char comm[16];