diff options
| author | Yang Wen <anmuxixixi@gmail.com> | 2026-02-25 22:59:42 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-02-26 18:33:50 +0900 |
| commit | 4637b4cdd7aebfa2e38fa39f4db91fa089b809c5 (patch) | |
| tree | e5daba01f347c6457cad9251a372f6da8696d46e /drivers/message/i2o/git@git.tavy.me:linux.git | |
| parent | 7dff99b354601dd01829e1511711846e04340a69 (diff) | |
exfat: use truncate_inode_pages_final() at evict_inode()
Currently, exfat uses truncate_inode_pages() in exfat_evict_inode().
However, truncate_inode_pages() does not mark the mapping as exiting,
so reclaim may still install shadow entries for the mapping until
the inode teardown completes.
In older kernels like Linux 5.10, if shadow entries are present
at that point,clear_inode() can hit
BUG_ON(inode->i_data.nrexceptional);
To align with VFS eviction semantics and prevent this situation,
switch to truncate_inode_pages_final() in ->evict_inode().
Other filesystems were updated to use truncate_inode_pages_final()
in ->evict_inode() by commit 91b0abe36a7b ("mm + fs: store shadow
entries in page cache")'.
Signed-off-by: Yang Wen <anmuxixixi@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'drivers/message/i2o/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
