public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [patch 7/13] inline generic_writepages()
Date: Tue, 16 Jul 2002 22:29:56 -0700	[thread overview]
Message-ID: <3D3500D4.A5ED22EF@zip.com.au> (raw)



generic_writepages() is just a wrapper around mpage_writepages(), so
inline it.



 fs/block_dev.c        |    1 +
 include/linux/mm.h    |    1 -
 include/linux/mpage.h |    5 +++++
 mm/page-writeback.c   |    6 ------
 mm/page_io.c          |    1 +
 5 files changed, 7 insertions(+), 7 deletions(-)

--- 2.5.26/mm/page-writeback.c~inline-generic_writepages	Tue Jul 16 21:46:36 2002
+++ 2.5.26-akpm/mm/page-writeback.c	Tue Jul 16 21:59:36 2002
@@ -316,12 +316,6 @@ int generic_vm_writeback(struct page *pa
 }
 EXPORT_SYMBOL(generic_vm_writeback);
 
-int generic_writepages(struct address_space *mapping, int *nr_to_write)
-{
-	return mpage_writepages(mapping, nr_to_write, NULL);
-}
-EXPORT_SYMBOL(generic_writepages);
-
 int do_writepages(struct address_space *mapping, int *nr_to_write)
 {
 	if (mapping->a_ops->writepages)
--- 2.5.26/include/linux/mpage.h~inline-generic_writepages	Tue Jul 16 21:46:36 2002
+++ 2.5.26-akpm/include/linux/mpage.h	Tue Jul 16 21:46:36 2002
@@ -16,3 +16,8 @@ int mpage_readpage(struct page *page, ge
 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);
+}
--- 2.5.26/fs/block_dev.c~inline-generic_writepages	Tue Jul 16 21:46:36 2002
+++ 2.5.26-akpm/fs/block_dev.c	Tue Jul 16 21:59:36 2002
@@ -20,6 +20,7 @@
 #include <linux/module.h>
 #include <linux/blkpg.h>
 #include <linux/buffer_head.h>
+#include <linux/mpage.h>
 
 #include <asm/uaccess.h>
 
--- 2.5.26/mm/page_io.c~inline-generic_writepages	Tue Jul 16 21:46:36 2002
+++ 2.5.26-akpm/mm/page_io.c	Tue Jul 16 21:46:36 2002
@@ -17,6 +17,7 @@
 #include <linux/bio.h>
 #include <linux/swapops.h>
 #include <linux/buffer_head.h>	/* for block_sync_page() */
+#include <linux/mpage.h>
 #include <asm/pgtable.h>
 
 static struct bio *
--- 2.5.26/include/linux/mm.h~inline-generic_writepages	Tue Jul 16 21:46:36 2002
+++ 2.5.26-akpm/include/linux/mm.h	Tue Jul 16 21:59:35 2002
@@ -461,7 +461,6 @@ extern int filemap_sync(struct vm_area_s
 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 */

.

                 reply	other threads:[~2002-07-17  5:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D3500D4.A5ED22EF@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox