aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-01-22 12:12:30 -0500
committerMister Oyster <oysterized@gmail.com>2017-05-27 19:39:49 +0200
commit964b9b3862dccbfbba546e4e09cb33a8361ca252 (patch)
tree1d744a99c006f8c7c48fa5063bf10aba7bef6d8d
parentef960bde387d8abe09d316b3450573e42b5340b8 (diff)
mm.h: add truncate_inode_pages_final() for 3.18 ext4 backport
-rw-r--r--include/linux/mm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index c8eb53fc8..6018d46d3 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1882,6 +1882,12 @@ static inline unsigned int debug_guardpage_minorder(void) { return 0; }
static inline bool page_is_guard(struct page *page) { return false; }
#endif /* CONFIG_DEBUG_PAGEALLOC */
+/* 3.18 backport */
+static inline void truncate_inode_pages_final(struct address_space *mapping)
+{
+ truncate_inode_pages(mapping, 0);
+}
+
#if MAX_NUMNODES > 1
void __init setup_nr_node_ids(void);
#else