diff options
| author | Zhang Yi <[email protected]> | 2024-05-17 12:39:58 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2024-06-27 22:04:49 +0000 |
| commit | b37c907073e80016333b442c845c3acc198e570f (patch) | |
| tree | 097d8988e886f406d4881fe9c551ffeba4483169 /fs/jbd2/commit.c | |
| parent | ext4: check the extent status again before inserting delalloc block (diff) | |
| download | kernel-b37c907073e80016333b442c845c3acc198e570f.tar.gz kernel-b37c907073e80016333b442c845c3acc198e570f.zip | |
ext4: warn if delalloc counters are not zero on inactive
The per-inode i_reserved_data_blocks count the reserved delalloc blocks
in a regular file, it should be zero when destroying the file. The
per-fs s_dirtyclusters_counter count all reserved delalloc blocks in a
filesystem, it also should be zero when umounting the filesystem. Now we
have only an error message if the i_reserved_data_blocks is not zero,
which is unable to be simply captured, so add WARN_ON_ONCE to make it
more visable.
Signed-off-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
