diff options
author | Eric Whitney <enwlinux@gmail.com> | 2018-10-01 14:19:37 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-10-01 14:19:37 -0400 |
commit | 0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6 (patch) | |
tree | a07c3e6aaad97caccc4e91214e8779b0a06bd901 /crypto/hash_info.c | |
parent | 1dc0aa46e74a3366e12f426b7caaca477853e9c3 (diff) | |
download | linux-0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6.tar.gz linux-0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6.tar.bz2 linux-0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6.zip |
ext4: fix reserved cluster accounting at delayed write time
The code in ext4_da_map_blocks sometimes reserves space for more
delayed allocated clusters than it should, resulting in premature
ENOSPC, exceeded quota, and inaccurate free space reporting.
Fix this by checking for written and unwritten blocks shared in the
same cluster with the newly delayed allocated block. A cluster
reservation should not be made for a cluster for which physical space
has already been allocated.
Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'crypto/hash_info.c')
0 files changed, 0 insertions, 0 deletions