diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-07-18 21:09:59 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-18 21:09:59 -0700 |
| commit | 15a37ba250eff9b8ccb1456d32ccc197f52ff883 (patch) | |
| tree | 690c967d15695364225212a3e2f7fddfa4385f5e /include | |
| parent | 3d4ed856c798f45a34b9d903c79d20d424818c61 (diff) | |
[PATCH] inline generic_writepages()
generic_writepages() is just a wrapper around mpage_writepages(), so
inline it.
Diffstat (limited to 'include')
| -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); +} |
