]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: move clearing of page->mapping to page_cache_tree_delete()
authorJan Kara <jack@suse.cz>
Thu, 16 Nov 2017 01:37:26 +0000 (17:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:06 +0000 (18:21 -0800)
commit2300638b124645c26d082dbb57841878202ff6f7
tree12b3bce371329c55fdbaf77b6a9cfc9d148c0e39
parent76253fbc8fbf6018401755fc5c07814a837cc832
mm: move clearing of page->mapping to page_cache_tree_delete()

Clearing of page->mapping makes sense in page_cache_tree_delete() as
well and it will help us with batching things this way.

Link: http://lkml.kernel.org/r/20171010151937.26984-6-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c