From: Linus Torvalds Date: Tue, 15 Nov 2022 22:56:23 +0000 (-0800) Subject: AMerge tag 'netfs-fixes-20221115' of git://git.kernel.org/pub/scm/linux/kernel/git... X-Git-Tag: v6.6.17~6180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59d0d52c30d4991ac4b329f049cc37118e00f5b0;p=platform%2Fkernel%2Flinux-rpi.git AMerge tag 'netfs-fixes-20221115' of git://git./linux/kernel/git/dhowells/linux-fs Pull netfx fixes from David Howells: "Two fixes, affecting the functions that iterates over the pagecache unmarking or unlocking pages after an op is complete: - xas_for_each() loops must call xas_retry() first thing and immediately do a "continue" in the case that the extracted value is a special value that indicates that the walk raced with a modification. Fix the unlock and unmark loops to do this. - The maths in the unlock loop is dodgy as it could, theoretically, at some point in the future end up with a starting file pointer that is in the middle of a folio. This will cause a subtraction to go negative - but the number is unsigned. Fix the maths to use absolute file positions instead of relative page indices" * tag 'netfs-fixes-20221115' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs: netfs: Fix dodgy maths netfs: Fix missing xas_retry() calls in xarray iteration --- 59d0d52c30d4991ac4b329f049cc37118e00f5b0