mm: move accounting updates before page_cache_tree_delete()
authorJan Kara <[email protected]>
Thu, 16 Nov 2017 01:37:22 +0000 (17:37 -0800)
committerLinus Torvalds <[email protected]>
Thu, 16 Nov 2017 02:21:06 +0000 (18:21 -0800)
commit76253fbc8fbf6018401755fc5c07814a837cc832
tree49f17d79cfea0a286ae131e1cee6decf794be693
parent59c66c5f8c4fb823240d70553c1686ce4e4dd331
mm: move accounting updates before page_cache_tree_delete()

Move updates of various counters before page_cache_tree_delete() call.
It will be easier to batch things this way and there is no difference
whether the counters get updated before or after removal from the radix
tree.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jan Kara <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Reviewed-by: Andi Kleen <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/filemap.c