]> git.baikalelectronics.ru Git - kernel.git/commit
mm,fs: split dump_mapping() out from dump_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 14 Jan 2022 22:05:04 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:26 +0000 (16:30 +0200)
commit5ba5de4c653819c289f9fb4813b61da20ec81532
treee2222fe85660185817c9055b0af5cdbcd39d48d9
parentf1a21c2f540fb56a8f6b5bf0979861e77646bda6
mm,fs: split dump_mapping() out from dump_page()

dump_mapping() is a big chunk of dump_page(), and it'd be handy to be
able to call it when we don't have a struct page.  Split it out and move
it to fs/inode.c.  Take the opportunity to simplify some of the debug
messages a little.

Link: https://lkml.kernel.org/r/20211121121056.2870061-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/inode.c
include/linux/fs.h
mm/debug.c