]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Add functions to zero portions of a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 5 Nov 2021 14:19:05 +0000 (10:19 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 18 Nov 2021 20:05:56 +0000 (15:05 -0500)
commit068617cbb268c36b7192456fe4c1bfc827f84e6e
tree6b5398c08fc4f9312aa87435422940f16a124924
parent16ffe227758e6fff0df4bec5ee39b0c7a649e494
mm: Add functions to zero portions of a folio

These functions are wrappers around zero_user_segments(), which means
that zero_user_segments() can now be called for compound pages even when
CONFIG_TRANSPARENT_HUGEPAGE is disabled.

Use 'xend' as the name of the parameter to indicate that this is an
excluded end, not the more usual included end.  Excluding the end makes
more sense to the callers, but can cause confusion to readers who are
more used to seeing included ends.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
include/linux/highmem.h
mm/highmem.c