diff options
author | Jan Kara <jack@suse.cz> | 2017-11-16 02:37:15 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-16 03:21:06 +0100 |
commit | 9f4e41f4717832e34cca153ced62b4a1d7e26c0e (patch) | |
tree | 7ae9a21d93fd73e10be9a2a23ef9ac91cea2055d /mm/Kconfig | |
parent | mm: speed up cancel_dirty_page() for clean pages (diff) | |
download | linux-9f4e41f4717832e34cca153ced62b4a1d7e26c0e.tar.xz linux-9f4e41f4717832e34cca153ced62b4a1d7e26c0e.zip |
mm: refactor truncate_complete_page()
Move call of delete_from_page_cache() and page->mapping check out of
truncate_complete_page() into the single caller - truncate_inode_page().
Also move page_mapped() check into truncate_complete_page(). That way
it will be easier to batch operations.
Also rename truncate_complete_page() to truncate_cleanup_page().
Link: http://lkml.kernel.org/r/20171010151937.26984-3-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>
Diffstat (limited to 'mm/Kconfig')
0 files changed, 0 insertions, 0 deletions