diff options
| author | 2025-02-21 20:39:29 +0000 | |
|---|---|---|
| committer | 2025-02-24 11:41:43 +0100 | |
| commit | 12851bd921d429c60578b90916fc220b60757c34 (patch) | |
| tree | 26a17d55b57d8753d31f8e426e8b4a12db57efda /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | kcmp: improve performance adding an unlikely hint to task comparisons (diff) | |
fs: Turn page_offset() into a wrapper around folio_pos()
This is far less efficient for the lagging filesystems which still
use page_offset(), but it removes an access to page->index. It also
fixes a bug -- if any filesystem passed a tail page to page_offset(),
it would return garbage which might result in the filesystem choosing
to not writeback a dirty page. There probably aren't any examples
of this, but I can't be certain.
Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/r/20250221203932.3588740-1-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
