Re: [PATCH v4] iomap: follow the alignment requirement for iomap_dio_hole_iter()
"Pankaj Raghav (Samsung)" <[email protected]>
| Newsgroups | org.kernel.vger.linux-xfs,org.kernel.vger.linux-btrfs,org.kernel.vger.linux-fsdevel |
|---|---|
| Message-ID | <aobov7x4-1uXpJwG@quentin> |
> [FIX]
> For iomap_dio_hole_iter() round down the copied length, and revert
> any excessive range that is beyond the aligned copied length.
> Also use @aligned_copied for the size increment and iter advancement.
>
> This should only affect btrfs, which is the only fs utilizing iomap dio
> with page fault disabled.
>
> Fixes: 001397f5ef49 ("iomap: add IOMAP_DIO_FSBLOCK_ALIGNED flag")
> Signed-off-by: Qu Wenruo <[email protected]>
Looks good,
Reviewed-by: Pankaj Raghav <[email protected]>
--
Pankaj