Skip to contentSkip to conversation

ocfs2: clear extent cache after moving/defragmenting extents

PATCH Deepanshu Kartikey 1 participant 1 message Oct 10, 2025 OCFS2

lore
Share & tools
lore
#0 lore raw

Hi Andrew,

Thank you for picking this up!

For the Fixes: tag:

Fixes 53069d4e76954e2e63c1b3c501051c6fbcf7298c ("Ocfs2/move_extents: move/defrag extents within a certain range.")

This commit introduced __ocfs2_move_extents_range() with the while loop that calls ocfs2_get_clusters() (which caches extent data) followed by ocfs2_move_extent()/ocfs2_defrag_extent() (which modify disk), but without invalidating the extent cache afterwards.

Thanks,
Deepanshu