]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: Avoid unnecessary transactions in evict_linked_inode
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 10 Nov 2025 21:18:44 +0000 (21:18 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 23 Mar 2026 19:55:24 +0000 (20:55 +0100)
commite2de65130d6ce599cfc114c515665194fe2dbf1d
tree295c9c40d53bc96c362f98c96febd1f8a40777af
parent0ac82bc7b7922add7f92d85732b4531af55c1e90
gfs2: Avoid unnecessary transactions in evict_linked_inode

In evict_linked_inode(), the truncate_inode_pages() calls are carried
out inside a transaction.  This code was added to what was then function
gfs2_delete_inode() in commit 16615be18cadf ("[GFS2] Clean up journaled
data writing").

These transactions are only used for creating revokes for the jdata
buffers in the journal, so don't create such transactions when we know
that the address space doesn't contain any jdata buffers for this inode
and truncate the metadata address space outside of the transaction.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/super.c