]> asedeno.scripts.mit.edu Git - linux.git/commit
gfs2: fallocate_chunk: Always initialize struct iomap
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 6 Jul 2018 22:05:41 +0000 (23:05 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 24 Jul 2018 22:06:48 +0000 (00:06 +0200)
commitc25892827c7996eb19ca2a5b1cf596218122e994
tree1210ec633eea5ea734e041e8c52e132c51c18801
parent4a7727725dc7d73769c5ab24c566df454093285f
gfs2: fallocate_chunk: Always initialize struct iomap

In fallocate_chunk, always initialize the iomap before calling
gfs2_iomap_get_alloc: future changes could otherwise cause things like
iomap.flags to leak across calls.

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