From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A517B38836C for ; Tue, 3 Mar 2026 10:35:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772534106; cv=none; b=tSmVIFI6eMH0tOMEWD2lsAaqTnyVtrIeYsFpzd74c+NF3cjwgwdeDd3R87jKTn48ylVVcN39z924I4VvReDjSCfToN9eeeuZ+A/bRKSZ1rvKipFVrDnkuJlauELTZUeYdDan9N3vBmEgnmQQA+gB7+oECoDTFpLWjazh3TegMLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772534106; c=relaxed/simple; bh=NDPLTZYpyB8AvjWnfTi4NCpTDfiFBgirFbbT2/Tf5G4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Kwa5yskPCM5Z9n+pluhHvd9WdhSpbAyEXox5NrU1VVGEmTmHRVoB/OLP+9VnJaejehcwkCDW/QpK0CLkSRdwCEKFpv7ri9VyM8oMQNYrAUr3V5edXqeLCibFl6w1K2mJpTFWkApC6e1cCu5cUxSXKOo2vBMLAn8+uhpzMnGwmqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0350F5BE05; Tue, 3 Mar 2026 10:34:45 +0000 (UTC) Authentication-Results: smtp-out2.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E95B63EA6F; Tue, 3 Mar 2026 10:34:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id PDP4OES5pmltFQAAD6G6ig (envelope-from ); Tue, 03 Mar 2026 10:34:44 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 88128A0B3A; Tue, 3 Mar 2026 11:34:40 +0100 (CET) From: Jan Kara To: Cc: Christian Brauner , Al Viro , , Ted Tso , "Tigran A. Aivazian" , David Sterba , OGAWA Hirofumi , Muchun Song , Oscar Salvador , David Hildenbrand , linux-mm@kvack.org, linux-aio@kvack.org, Benjamin LaHaise , Jan Kara Subject: [PATCH 08/32] affs: Sync and invalidate metadata buffers from affs_evict_inode() Date: Tue, 3 Mar 2026 11:33:57 +0100 Message-ID: <20260303103406.4355-40-jack@suse.cz> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260303101717.27224-1-jack@suse.cz> References: <20260303101717.27224-1-jack@suse.cz> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=759; i=jack@suse.cz; h=from:subject; bh=NDPLTZYpyB8AvjWnfTi4NCpTDfiFBgirFbbT2/Tf5G4=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBpprkk8HckfhJ1pkI9JwuC2AULW5aPa2lEuXAbV pQDis2S6F+JATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCaaa5JAAKCRCcnaoHP2RA 2VFcB/41q8HZKDIyAi9JxfZV2iGf/oWzNNQqiIJu/TgJ83dhPE9JdflB+QrDuZ5WfWU2+g6BnDd 6TbFhNQ7N/GBBAW7OF8mCHQ3CwOAQf+zGJF4sm87/0Um7Cn/fpIOecJsKuVVQZrn7h4roCLAj/b J9WZceJCnZUkZoWPbl6JWLzlCtCnhCVDfHBinSApEgSuDp7g08pLQ+GLT5e+71QrF8saJqnQo5p oUJurV3B9ZeYu3k5S3HIB3JuuoPuuXCwEstfzcII5Fjo5kh+t+jb0bOPZjY0U/c9Wj3DtTung41 IQFDRdiyX/bQtHRK/mcCv1Q2ScIF+tm3tT/3K7+DEDeEsd0z X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C Content-Transfer-Encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[] X-Rspamd-Queue-Id: 0350F5BE05 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Spam-Flag: NO X-Spam-Score: -4.00 X-Spam-Level: There are only very few filesystems using generic metadata buffer head tracking and everybody is paying the overhead. When we remove this tracking for inode reclaim code .evict will start to see inodes with metadata buffers attached so write them out and prune them. Signed-off-by: Jan Kara --- fs/affs/inode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/affs/inode.c b/fs/affs/inode.c index 0bfc7d151dcd..84afa862f220 100644 --- a/fs/affs/inode.c +++ b/fs/affs/inode.c @@ -267,6 +267,8 @@ affs_evict_inode(struct inode *inode) if (!inode->i_nlink) { inode->i_size = 0; affs_truncate(inode); + } else { + sync_mapping_buffers(&inode->i_data); } invalidate_inode_buffers(inode); -- 2.51.0