OSDN Git Service

iomap: Add a page_prepare callback
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 30 Apr 2019 15:45:34 +0000 (08:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 1 May 2019 14:47:37 +0000 (07:47 -0700)
commitdf0db3ecdb8fc942e9d812558b8e15ecd3e050b1
tree85e9df7f72f0aba01f16944860f80daf76d272e4
parent7a77dad7e3be1280456508841ccdd2a091b1906a
iomap: Add a page_prepare callback

Move the page_done callback into a separate iomap_page_ops structure and
add a page_prepare calback to be called before the next page is written
to.  In gfs2, we'll want to start a transaction in page_prepare and end
it in page_done.  Other filesystems that implement data journaling will
require the same kind of mechanism.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/gfs2/bmap.c
fs/iomap.c
include/linux/iomap.h