Re: [PATCH -next v5 22/32] ext4: add EXT4_STATE_DISKSIZE_GROW_PENDING state bit and helpers
| Newsgroups | org.kernel.vger.linux-ext4 |
|---|---|
| Message-ID | <[email protected]> |
> From: Zhang Yi <[email protected]> > > 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 <[email protected]> > Signed-off-by: Zhang Yi <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=22