gfs2: Add support for IOMAP_ZERO
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 12 Jul 2019 13:57:52 +0000 (15:57 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 9 Aug 2019 16:00:50 +0000 (17:00 +0100)
commit72d36d0529c6d9ee8b950c819508b1e344d8cc4f
treeab590c9a5ab67fd8b5869f98fa822c1ec8c053ff
parent34aad20bc3fff3ce4e3fa8cb1d0265a1df5cded5
gfs2: Add support for IOMAP_ZERO

Add support for the IOMAP_ZERO iomap operation so that iomap_zero_range will
work as expected.  In the IOMAP_ZERO case, the caller of iomap_zero_range is
responsible for taking an exclusive glock on the inode, so we need no
additional locking in gfs2_iomap_begin.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/bmap.c