gfs2: use iomap for buffered I/O in ordered and writeback mode
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Jul 2019 21:54:39 +0000 (23:54 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 14 Oct 2020 21:54:42 +0000 (23:54 +0200)
commit2164f9b9186962ffb7c687e18ec6f5255525f09d
treeebe2bffe90282875650ce1171bed81c229e447eb
parentee1e2c773e4f4ce2213f9d77cc703b669ca6fa3f
gfs2: use iomap for buffered I/O in ordered and writeback mode

Switch to using the iomap readpage and writepage helpers for all I/O in
the ordered and writeback modes, and thus eliminate using buffer_heads
for I/O in these cases.  The journaled data mode is left untouched.

(Andreas Gruenbacher: In gfs2_unstuffer_page, switch from mark_buffer_dirty
to set_page_dirty instead of accidentally leaving the page / buffer clean.)

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/aops.c
fs/gfs2/bmap.c
fs/gfs2/bmap.h