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/linux/mpage.h | |
| parent | 3d4ed856c798f45a34b9d903c79d20d424818c61 (diff) | |
[PATCH] inline generic_writepages()
generic_writepages() is just a wrapper around mpage_writepages(), so
inline it.
Diffstat (limited to 'include/linux/mpage.h')
| -rw-r--r-- | include/linux/mpage.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); +} |
