Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quota: fix wrong condition in is_quota_modification()
Quoted from commit 3da40c7 ("ext4: only call ext4_truncate when size <= isize") " At LSF we decided that if we truncate up from isize we shouldn't trim fallocated blocks that were fallocated with KEEP_SIZE and are past the new i_size. This patch fixes ext4 to do this. " And generic/092 of fstest have covered this case for long time, however is_quota_modification() didn't adjust based on that rule, so that in below condition, we will lose to quota block change: - fallocate blocks beyond EOF - remount - truncate(file_path, file_size) Fix it. Link: https://lore.kernel.org/r/[email protected] Fixes: 3da40c7 ("ext4: only call ext4_truncate when size <= isize") CC: [email protected] Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jan Kara <[email protected]>
- Loading branch information