diff options
| author | Zhang Yi <yi.zhang@huawei.com> | 2026-10-09 18:30:22 +0800 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-10-15 10:53:13 -0400 |
| commit | 16852f1d3c39e15feeced92c6c99d59add2dd1d2 (patch) | |
| tree | cfbf37a390899c41392444391772569b57e5cb8b /scripts/Makefile.thinlto | |
| parent | 7a40905e58f05671f366bd67ea55e55d5f59a35c (diff) | |
| download | linux-16852f1d3c39e15feeced92c6c99d59add2dd1d2.tar.gz linux-16852f1d3c39e15feeced92c6c99d59add2dd1d2.zip | |
ext4: add EXT4_STATE_DISKSIZE_GROW_PENDING state bit and helpers
Inodes using the iomap buffered I/O path do not use data=ordered
mode, so the zeroed EOF block that straddles i_disksize needs explicit
tracking to ensure it is written back before i_disksize is advanced.
Add the EXT4_STATE_DISKSIZE_GROW_PENDING inode state bit and three
helpers: ext4_iomap_clear_disksize_pending() to atomically clear the
bit and wake waiters, ext4_iomap_wait_disksize_pending() to block until
the bit is cleared, and ext4_iomap_get_disksize_pending_range() to
compute the pending range from i_disksize.
These will be used by subsequent patches to serialize i_disksize
updates with the writeback of the zeroed EOF block.
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Tested-by: syzbot@syzkaller.appspotmail.com
Link: https://patch.msgid.link/20261009103033.2920530-22-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
