From patchwork Tue Dec 30 20:51:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1121 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=1767127974; bh=+C5bcEIvpFJ5w2mQzX38s4zZKGWRlE3Ld9vMVQSJcnw=; 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=nT8jibFrFigKOQ/5O4ym22eHIbTEw322U7Aa6xDheeguczJi3XVlYvXAR25IYpaSf vK3yIw7VF2YlpRIDPC0cw5TdWrVa76IHgDS4B/9t7gWIR4jemVtmWTRiudjhLp+XzK 0YfoQ/X01MDrtElOdkju+J4KYYmeSCdmmg4yQWSCJClOMqmFsxY9nfPXqgosIVLcCS EUgVe9EkFXqL0vYDRKq1ouXtbACp2oww1KJxcRGYvBlgM872h72g+5hgGi5rvuQ8HC jPKkVtiB1UPi/g5wYbuDTIPIoazbwyqe3oZNtyuhId+IniCPZjs4dMrF1Inhxjj+3Z XLOM76OWiK8hw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C6E2868BF0 for ; Tue, 30 Dec 2025 13:52:54 -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 y_3F4PDKkOJK for ; Tue, 30 Dec 2025 13:52:54 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127972; bh=+C5bcEIvpFJ5w2mQzX38s4zZKGWRlE3Ld9vMVQSJcnw=; 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=ICHeV5JDHCDncMp4K470PhSVV56rBvjhbdAZLJBvuzYophXR21dEfa4lZLaAdRTPG vIfJHDPsaXrkp0clsvHVwGNn/qn3ZHGPgro3pzc/eHIyvm53JP2uf+x1MKncJuJp4h IPrSV/UTzpF1BS4Rw2nduv3Brmbp8gdGfYxQuuN4UARysp5EvSjFUvY8n246v34LPR sMFnqkTtGzim21I0HmBeWPGR3k9r/zdg/jfABQ3T2NF1Vh/ZKZom+0lBqUzMUmiflK LPjaoWFidrgxnZLUiGOTIY+/ueNYBrHRsJvGGJpo026/3vYHirioggdMrVF3DWG03n paXADNQyWKgHA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CDF3868C06 for ; Tue, 30 Dec 2025 13:52:52 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127969; bh=IGKpA3DS5yiaClTHfzuJFkTGgnsso8xifTwrATBPu18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EiO4LYyYz1WyKX9gO3kOEAirEyoPzIoamcSGM3QUGJ72p4RbAx/fBvuTnx5UNpii4 Qh41SibDv/TJjbNCCFNsu9wCrHjJgFt+XZJJOGBeky4FoLKrBBL4T39fJMir+qZy3E RpsR7JsBvYlGO9jTlao4Hqc34h+Bcd06kZffKOP4HmdBvHyvelb9MWcv8+YTkvtrMB tNS7UVLd3XatinSl/qBLZJxVfSv/lpFAY3+RCfuMzv/iMW1d2phrzSghdKwh2wWKiE XI2FTONphkNAoyqzJAMD1r9eUiZKS9fIO+MGNMadSxoeArer52nLUJ3W0VehWl8Itu bXrbC5d8d6tNg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DE76668C0D; Tue, 30 Dec 2025 13:52:49 -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 57QcFPPQ-hDr; Tue, 30 Dec 2025 13:52:49 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127969; bh=jb2okEEnXLVvrFTPRvKhojcjRQxQGGsIhSanpTfiPUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m5Giwu75veVGrB/APyXA6ihh6/ltZLV0Rgy0pG6pqMnvBvBiQeR0k4ylG1R2Hh1hv DGgpmgQDkqWXWgcwYayGB0tJWTb5itHGkfTKfIhPgVpu5SZs5J8x89VVGJFPDkvKEZ jqSMdHB4wERQ/Jm0lw+WqK1P88SyMHr1iegbOmyLlZP8eq3XyEH8yAngdG+beOhbYd QmWc28WlPZKAj77uGBrntsi2OG/79LR6VTPhMQvnRUJL1RfyAYXSjzBv63lv/S/Zgx Oq/o0emhaL7Rdu4Z6x2FkyyyzGNJ5HV++gcMteJq4zLTlBOsFp0UqLePPWsSeDinec wxLv8EQeh3TsQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 60C4064C8A; Tue, 30 Dec 2025 13:52:49 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 30 Dec 2025 13:51:49 -0700 Message-ID: <20251230205157.3383926-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251230205157.3383926-1-sjg@u-boot.org> References: <20251230205157.3383926-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: ORT6EUL6JZVHKUGHQ5HBSL5T7W753SPW X-Message-ID-Hash: ORT6EUL6JZVHKUGHQ5HBSL5T7W753SPW 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 12/14] linux: ext4l: Export ext4_commit_super function 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 Remove static from ext4_commit_super() to allow calling it from ext4l interface code to sync superblock after write operations. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ext4l/super.c b/fs/ext4l/super.c index 57653c8acb7..9ed6f907b7a 100644 --- a/fs/ext4l/super.c +++ b/fs/ext4l/super.c @@ -38,7 +38,6 @@ static int ext4_load_journal(struct super_block *, struct ext4_super_block *, unsigned long journal_devnum); static int ext4_show_options(struct seq_file *seq, struct dentry *root); static void ext4_update_super(struct super_block *sb); -static int ext4_commit_super(struct super_block *sb); static int ext4_mark_recovery_complete(struct super_block *sb, struct ext4_super_block *es); static int ext4_clear_journal_err(struct super_block *sb, @@ -6153,7 +6152,7 @@ static void ext4_update_super(struct super_block *sb) unlock_buffer(sbh); } -static int ext4_commit_super(struct super_block *sb) +int ext4_commit_super(struct super_block *sb) { struct buffer_head *sbh = EXT4_SB(sb)->s_sbh;