From: Chandan Babu R Date: Wed, 24 Apr 2024 06:57:33 +0000 (+0530) Subject: Merge tag 'reduce-scrub-iget-overhead-6.10_2024-04-23' of https://git.kernel.org... X-Git-Tag: v6.10-rc1~87^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b878dbbe2acda5cd285387dd26a68751cfe66485;p=thirdparty%2Fkernel%2Flinux.git Merge tag 'reduce-scrub-iget-overhead-6.10_2024-04-23' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into xfs-6.10-mergeC xfs: reduce iget overhead in scrub This patchset looks to reduce iget overhead in two ways: First, a previous patch conditionally set DONTCACHE on inodes during xchk_irele on the grounds that we knew better at irele time if an inode should be dropped. Unfortunately, over time that patch morphed into a call to d_mark_dontcache, which resulted in inodes being dropped even if they were referenced by the dcache. This actually caused *more* recycle overhead than if we'd simply called xfs_iget to set DONTCACHE only on misses. The second patch reduces the cost of untrusted iget for a vectored scrub call by having the scrubv code maintain a separate refcount to the inode so that the cache will always hit. Signed-off-by: Darrick J. Wong Signed-off-by: Chandan Babu R * tag 'reduce-scrub-iget-overhead-6.10_2024-04-23' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux: xfs: only iget the file once when doing vectored scrub-by-handle xfs: use dontcache for grabbing inodes during scrub --- b878dbbe2acda5cd285387dd26a68751cfe66485