diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm.h | 1 | ||||
| -rw-r--r-- | include/linux/mpage.h | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index c470238148b6..0012e3900468 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -461,7 +461,6 @@ extern int filemap_sync(struct vm_area_struct *, unsigned long, size_t, unsigned extern struct page *filemap_nopage(struct vm_area_struct *, unsigned long, int); /* mm/page-writeback.c */ -int generic_writepages(struct address_space *mapping, int *nr_to_write); int write_one_page(struct page *page, int wait); /* readahead.c */ diff --git a/include/linux/mpage.h b/include/linux/mpage.h index 929fca427465..52253d90f55d 100644 --- a/include/linux/mpage.h +++ b/include/linux/mpage.h @@ -16,3 +16,8 @@ int mpage_readpage(struct page *page, get_block_t get_block); int mpage_writepages(struct address_space *mapping, int *nr_to_write, get_block_t get_block); +static inline int +generic_writepages(struct address_space *mapping, int *nr_to_write) +{ + return mpage_writepages(mapping, nr_to_write, NULL); +} |
