07 Jul, 2020

1 commit

  • Make sure iomap_end is always called when iomap_begin succeeds.

    Without this fix, iomap_end won't be called when a filesystem's
    iomap_begin operation returns an invalid mapping, bypassing any
    unlocking done in iomap_end. With this fix, the unlocking will still
    happen.

    This bug was found by Bob Peterson during code review. It's unlikely
    that such iomap_begin bugs will survive to affect users, so backporting
    this fix seems unnecessary.

    Fixes: ae259a9c8593 ("fs: introduce iomap infrastructure")
    Signed-off-by: Andreas Gruenbacher
    Reviewed-by: Christoph Hellwig
    Reviewed-by: Darrick J. Wong
    Signed-off-by: Darrick J. Wong

    Andreas Gruenbacher
     

23 Nov, 2019

1 commit


21 Oct, 2019

1 commit

  • The srcmap is used to identify where the read is to be performed from.
    It is passed to ->iomap_begin, which can fill it in if we need to read
    data for partially written blocks from a different location than the
    write target. The srcmap is only supported for buffered writes so far.

    Signed-off-by: Goldwyn Rodrigues
    [hch: merged two patches, removed the IOMAP_F_COW flag, use iomap as
    srcmap if not set, adjust length down to srcmap end as well]
    Signed-off-by: Christoph Hellwig
    Reviewed-by: Darrick J. Wong
    Signed-off-by: Darrick J. Wong
    Acked-by: Goldwyn Rodrigues

    Goldwyn Rodrigues
     

17 Jul, 2019

2 commits