• Ritesh Harjani (IBM)'s avatar
    iomap: Rename iomap_page to iomap_folio_state and others · 04f52c4e
    Ritesh Harjani (IBM) authored
    struct iomap_page actually tracks per-block state of a folio.
    Hence it make sense to rename some of these function names and data
    structures for e.g.
    1. struct iomap_page (iop) -> struct iomap_folio_state (ifs)
    2. iomap_page_create() -> ifs_alloc()
    3. iomap_page_release() -> ifs_free()
    4. iomap_iop_set_range_uptodate() -> ifs_set_range_uptodate()
    5. to_iomap_page() -> folio->private
    
    Since in later patches we are also going to add per-block dirty state
    tracking to iomap_folio_state. Hence this patch also renames "uptodate"
    & "uptodate_lock" members of iomap_folio_state to "state" and"state_lock".
    
    We don't really need to_iomap_page() function, instead directly open code
    it as folio->private;
    Signed-off-by: default avatarRitesh Harjani (IBM) <ritesh.list@gmail.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    04f52c4e
buffered-io.c 52.8 KB