]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Iomap cleanups and improvements
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 4 Jun 2018 12:56:51 +0000 (07:56 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 4 Jun 2018 12:56:51 +0000 (07:56 -0500)
commit3bf8e253c44572add0c36c091eebfd7f7fc948ab
treefe32126aa08767b5621741b63b096af966604f9d
parent5c7d9cf985e3005c2b6634e69b1f37a7bc6f0449
gfs2: Iomap cleanups and improvements

Clean up gfs2_iomap_alloc and gfs2_iomap_get.  Document how
gfs2_iomap_alloc works: it now needs to be called separately after
gfs2_iomap_get where necessary; this will be used later by iomap write.
Move gfs2_iomap_ops into bmap.c.

Introduce a new gfs2_iomap_get_alloc helper and use it in
fallocate_chunk: gfs2_iomap_begin will become unsuitable for fallocate
with proper iomap write support.

In gfs2_block_map and fallocate_chunk, zero-initialize struct iomap.

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