From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, tytso@mit.edu, adilger@sun.com,
linux-ext4@vger.kernel.org, alex@clusterfs.com
Subject: Re: [PATCH] Remove two unneeded exports and make two symbols static in fs/mpage.c
Date: Tue, 31 Mar 2009 10:08:36 +0530 [thread overview]
Message-ID: <20090331043836.GA5979@skywalker> (raw)
In-Reply-To: <1238449280-10318-1-git-send-email-dmitri.vorobiev@movial.com>
On Tue, Mar 31, 2009 at 12:41:20AM +0300, Dmitri Vorobiev wrote:
> Commit 29a814d2ee0e43c2980f33f91c1311ec06c0aa35 (vfs: add hooks for
> ext4's delayed allocation support) exported the following functions
>
> mpage_bio_submit()
> __mpage_writepage()
>
> for the benefit of ext4's delayed allocation support. Since commit
> a1d6cc563bfdf1bf2829d3e6ce4d8b774251796b (ext4: Rework the
> ext4_da_writepages() function), these functions are not used by the
> ext4 driver anymore. However, the now unnecessary exports still
> remain, and this patch removes those. Moreover, these two functions
> can become static again.
>
> The issue was spotted by namespacecheck.
>
> Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> ---
> fs/mpage.c | 13 +++++++++----
> include/linux/mpage.h | 10 ----------
> 2 files changed, 9 insertions(+), 14 deletions(-)
>
> diff --git a/fs/mpage.c b/fs/mpage.c
> index 16c3ef3..680ba60 100644
> --- a/fs/mpage.c
> +++ b/fs/mpage.c
> @@ -82,7 +82,7 @@ static void mpage_end_io_write(struct bio *bio, int err)
> bio_put(bio);
> }
>
> -struct bio *mpage_bio_submit(int rw, struct bio *bio)
> +static struct bio *mpage_bio_submit(int rw, struct bio *bio)
> {
> bio->bi_end_io = mpage_end_io_read;
> if (rw == WRITE)
> @@ -90,7 +90,6 @@ struct bio *mpage_bio_submit(int rw, struct bio *bio)
> submit_bio(rw, bio);
> return NULL;
> }
> -EXPORT_SYMBOL(mpage_bio_submit);
>
> static struct bio *
> mpage_alloc(struct block_device *bdev,
> @@ -439,7 +438,14 @@ EXPORT_SYMBOL(mpage_readpage);
> * just allocate full-size (16-page) BIOs.
> */
>
> -int __mpage_writepage(struct page *page, struct writeback_control *wbc,
> +struct mpage_data {
> + struct bio *bio;
> + sector_t last_block_in_bio;
> + get_block_t *get_block;
> + unsigned use_writepage;
> +};
> +
> +static int __mpage_writepage(struct page *page, struct writeback_control *wbc,
> void *data)
> {
> struct mpage_data *mpd = data;
> @@ -648,7 +654,6 @@ out:
> mpd->bio = bio;
> return ret;
> }
> -EXPORT_SYMBOL(__mpage_writepage);
>
> /**
> * mpage_writepages - walk the list of dirty pages of the given address space & writepage() all of them
> diff --git a/include/linux/mpage.h b/include/linux/mpage.h
> index 5c42821..068a0c9 100644
> --- a/include/linux/mpage.h
> +++ b/include/linux/mpage.h
> @@ -11,21 +11,11 @@
> */
> #ifdef CONFIG_BLOCK
>
> -struct mpage_data {
> - struct bio *bio;
> - sector_t last_block_in_bio;
> - get_block_t *get_block;
> - unsigned use_writepage;
> -};
> -
> struct writeback_control;
>
> -struct bio *mpage_bio_submit(int rw, struct bio *bio);
> int mpage_readpages(struct address_space *mapping, struct list_head *pages,
> unsigned nr_pages, get_block_t get_block);
> int mpage_readpage(struct page *page, get_block_t get_block);
> -int __mpage_writepage(struct page *page, struct writeback_control *wbc,
> - void *data);
> int mpage_writepages(struct address_space *mapping,
> struct writeback_control *wbc, get_block_t get_block);
> int mpage_writepage(struct page *page, get_block_t *get_block,
> --
> 1.5.6.3
>
next prev parent reply other threads:[~2009-03-31 4:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 21:41 [PATCH] Remove two unneeded exports and make two symbols static in fs/mpage.c Dmitri Vorobiev
2009-03-31 4:38 ` Aneesh Kumar K.V [this message]
2009-04-01 11:39 ` Al Viro
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=20090331043836.GA5979@skywalker \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=adilger@sun.com \
--cc=alex@clusterfs.com \
--cc=dmitri.vorobiev@movial.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).