Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1023
b: refs/heads/master
c: d17d7fa
h: refs/heads/master
i:
  1021: a3e077c
  1019: ca1e99a
  1015: a8c1674
  1007: db6455f
  991: ef4afc6
  959: e340247
  895: 2daf7c4
  767: 5686ca0
  511: a4ccb14
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 5, 2005
1 parent 55fa7f6 commit 4a33e99
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 61 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: ecffdde68ebefa1aa24411a91b12ae649f71f71c
refs/heads/master: d17d7fa44dbe1f12031773e27eda9e939024a037
46 changes: 0 additions & 46 deletions trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,12 +844,6 @@ ext3_direct_io_get_blocks(struct inode *inode, sector_t iblock,
return ret;
}

static int ext3_writepages_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh, int create)
{
return ext3_direct_io_get_blocks(inode, iblock, 1, bh, create);
}

/*
* `handle' can be NULL if create is zero
*/
Expand Down Expand Up @@ -1323,45 +1317,6 @@ static int ext3_ordered_writepage(struct page *page,
return ret;
}

static int
ext3_writeback_writepage_helper(struct page *page,
struct writeback_control *wbc)
{
return block_write_full_page(page, ext3_get_block, wbc);
}

static int
ext3_writeback_writepages(struct address_space *mapping,
struct writeback_control *wbc)
{
struct inode *inode = mapping->host;
handle_t *handle = NULL;
int err, ret = 0;

if (!mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))
return ret;

handle = ext3_journal_start(inode, ext3_writepage_trans_blocks(inode));
if (IS_ERR(handle)) {
ret = PTR_ERR(handle);
return ret;
}

ret = __mpage_writepages(mapping, wbc, ext3_writepages_get_block,
ext3_writeback_writepage_helper);

/*
* Need to reaquire the handle since ext3_writepages_get_block()
* can restart the handle
*/
handle = journal_current_handle();

err = ext3_journal_stop(handle);
if (!ret)
ret = err;
return ret;
}

static int ext3_writeback_writepage(struct page *page,
struct writeback_control *wbc)
{
Expand Down Expand Up @@ -1599,7 +1554,6 @@ static struct address_space_operations ext3_writeback_aops = {
.readpage = ext3_readpage,
.readpages = ext3_readpages,
.writepage = ext3_writeback_writepage,
.writepages = ext3_writeback_writepages,
.sync_page = block_sync_page,
.prepare_write = ext3_prepare_write,
.commit_write = ext3_writeback_commit_write,
Expand Down
12 changes: 1 addition & 11 deletions trunk/fs/mpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,6 @@ __mpage_writepage(struct bio *bio, struct page *page, get_block_t get_block,
int
mpage_writepages(struct address_space *mapping,
struct writeback_control *wbc, get_block_t get_block)
{
return __mpage_writepages(mapping, wbc, get_block,
mapping->a_ops->writepage);
}

int
__mpage_writepages(struct address_space *mapping,
struct writeback_control *wbc, get_block_t get_block,
writepage_t writepage_fn)
{
struct backing_dev_info *bdi = mapping->backing_dev_info;
struct bio *bio = NULL;
Expand Down Expand Up @@ -725,7 +716,7 @@ __mpage_writepages(struct address_space *mapping,
} else {
bio = __mpage_writepage(bio, page, get_block,
&last_block_in_bio, &ret, wbc,
writepage_fn);
page->mapping->a_ops->writepage);
}
if (unlikely(ret == WRITEPAGE_ACTIVATE))
unlock_page(page);
Expand Down Expand Up @@ -755,7 +746,6 @@ __mpage_writepages(struct address_space *mapping,
return ret;
}
EXPORT_SYMBOL(mpage_writepages);
EXPORT_SYMBOL(__mpage_writepages);

int mpage_writepage(struct page *page, get_block_t get_block,
struct writeback_control *wbc)
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/mpage.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ 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,
struct writeback_control *wbc);
int __mpage_writepages(struct address_space *mapping,
struct writeback_control *wbc, get_block_t get_block,
writepage_t writepage);

static inline int
generic_writepages(struct address_space *mapping, struct writeback_control *wbc)
Expand Down

0 comments on commit 4a33e99

Please sign in to comment.