aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorGravatar Matthew Wilcox (Oracle) <willy@infradead.org> 2022-01-14 14:05:04 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2022-01-15 16:30:26 +0200
commit3e9d80a891df3b1a5d77db47fa7fdf33ba71e5cb (patch)
treee2222fe85660185817c9055b0af5cdbcd39d48d9 /include/linux/fs.h
parentkasan: fix quarantine conflicting with init_on_free (diff)
downloadlinux-3e9d80a891df3b1a5d77db47fa7fdf33ba71e5cb.tar.gz
linux-3e9d80a891df3b1a5d77db47fa7fdf33ba71e5cb.tar.bz2
linux-3e9d80a891df3b1a5d77db47fa7fdf33ba71e5cb.zip
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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index bbf812ce89a8..5315fa68f751 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3152,6 +3152,7 @@ extern void unlock_new_inode(struct inode *);
extern void discard_new_inode(struct inode *);
extern unsigned int get_next_ino(void);
extern void evict_inodes(struct super_block *sb);
+void dump_mapping(const struct address_space *);
/*
* Userspace may rely on the the inode number being non-zero. For example, glibc