]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: free the item in xfs_mru_cache_insert on failure
authorChristoph Hellwig <hch@lst.de>
Wed, 14 May 2025 10:50:37 +0000 (10:50 +0000)
committerCarlos Maiolino <cem@kernel.org>
Wed, 14 May 2025 17:00:12 +0000 (19:00 +0200)
commit70b95cb86513d7f6d084ddc8e961a1cab9022e14
tree732aa0aaac13855b1aa8e2930f460f1d95b6ba82
parent1c7161ef0164716fdf4618b50747bd3002625e38
xfs: free the item in xfs_mru_cache_insert on failure

Call the provided free_func when xfs_mru_cache_insert as that's what
the callers need to do anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_filestream.c
fs/xfs/xfs_mru_cache.c