From: Dave Chinner Date: Thu, 13 Apr 2023 21:10:41 +0000 (+1000) Subject: Merge tag 'scrub-iget-fixes-6.4_2023-04-12' of git://git.kernel.org/pub/scm/linux... X-Git-Tag: v6.6.7~2856^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e7912349ebcc194aba463b2c8128ba809ee4b64;p=platform%2Fkernel%2Flinux-starfive.git Merge tag 'scrub-iget-fixes-6.4_2023-04-12' of git://git./linux/kernel/git/djwong/xfs-linux into guilt/xfs-for-next xfs: fix iget/irele usage in online fsck [v24.5] This patchset fixes a handful of problems relating to how we get and release incore inodes in the online scrub code. The first patch fixes how we handle DONTCACHE -- our reasons for setting (or clearing it) depend entirely on the runtime environment at irele time. Hence we can refactor iget and irele to use our own wrappers that set that context appropriately. The second patch fixes a race between the iget call in the inode core scrubber and other writer threads that are allocating or freeing inodes in the same AG by changing the behavior of xchk_iget (and the inode core scrub setup function) to return either an incore inode or the AGI buffer so that we can be sure that the inode cannot disappear on us. The final patch elides MMAPLOCK from scrub paths when possible. It did not fit anywhere else. Signed-off-by: Darrick J. Wong Signed-off-by: Dave Chinner --- 1e7912349ebcc194aba463b2c8128ba809ee4b64