Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139865
b: refs/heads/master
c: ced117c
h: refs/heads/master
i:
  139863: 0e62cf4
v: v3
  • Loading branch information
Dmitri Vorobiev authored and Al Viro committed Apr 1, 2009
1 parent 6642dc2 commit 5d3a4e3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47e4491b40df73c3b117e3d80b31b5b512a4b19f
refs/heads/master: ced117c73edc917e96dea7cca98c91383f0792f7
13 changes: 9 additions & 4 deletions trunk/fs/mpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,14 @@ 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)
bio->bi_end_io = mpage_end_io_write;
submit_bio(rw, bio);
return NULL;
}
EXPORT_SYMBOL(mpage_bio_submit);

static struct bio *
mpage_alloc(struct block_device *bdev,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -648,7 +654,6 @@ int __mpage_writepage(struct page *page, struct writeback_control *wbc,
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
Expand Down
10 changes: 0 additions & 10 deletions trunk/include/linux/mpage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5d3a4e3

Please sign in to comment.