]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
iomap: Use kzalloc to allocate iomap_page
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Sep 2020 15:58:39 +0000 (08:58 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Sep 2020 15:59:26 +0000 (08:59 -0700)
commita6901d4d148dcbad7efb3174afbdf68c995618c2
tree800c6f932d4cff0c52a12e9310ea2de9c9db4c97
parent24addd848a45747bcda68418710c72fdc8e145e4
iomap: Use kzalloc to allocate iomap_page

We can skip most of the initialisation, although spinlocks still
need explicit initialisation as architectures may use a non-zero
value to indicate unlocked.  The comment is no longer useful as
attach_page_private() handles the refcount now.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap/buffered-io.c