Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext4: fix leak of quota reservations
Commit 8fcc3a5 ("ext4: rework reserved cluster accounting when invalidating pages") moved freeing of delayed allocation reservations from dirty page invalidation time to time when we evict corresponding status extent from extent status tree. For inodes which don't have any blocks allocated this may actually happen only in ext4_clear_blocks() which is after we've dropped references to quota structures from the inode. Thus reservation of quota leaked. Fix the problem by clearing quota information from the inode only after evicting extent status tree in ext4_clear_inode(). Link: https://lore.kernel.org/r/[email protected] Reported-by: Konstantin Khlebnikov <[email protected]> Fixes: 8fcc3a5 ("ext4: rework reserved cluster accounting when invalidating pages") Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
- Loading branch information