Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242372
b: refs/heads/master
c: ee6ecbc
h: refs/heads/master
v: v3
  • Loading branch information
Theodore Ts'o committed Feb 26, 2011
1 parent 2bcd1d6 commit 524b9fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 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: 9749895644a817cfd28a535bc3ae60e4267bdc50
refs/heads/master: ee6ecbcc5d73672217fdea420d182ecb0cdf310c
10 changes: 0 additions & 10 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,6 @@ static int ext4_da_writepages(struct address_space *mapping,
struct mpage_da_data mpd;
struct inode *inode = mapping->host;
int pages_written = 0;
long pages_skipped;
unsigned int max_pages;
int range_cyclic, cycled = 1, io_done = 0;
int needed_blocks, ret = 0;
Expand Down Expand Up @@ -2986,8 +2985,6 @@ static int ext4_da_writepages(struct address_space *mapping,
mpd.wbc = wbc;
mpd.inode = mapping->host;

pages_skipped = wbc->pages_skipped;

retry:
if (wbc->sync_mode == WB_SYNC_ALL)
tag_pages_for_writeback(mapping, index, end);
Expand Down Expand Up @@ -3047,15 +3044,13 @@ static int ext4_da_writepages(struct address_space *mapping,
* and try again
*/
jbd2_journal_force_commit_nested(sbi->s_journal);
wbc->pages_skipped = pages_skipped;
ret = 0;
} else if (ret == MPAGE_DA_EXTENT_TAIL) {
/*
* got one extent now try with
* rest of the pages
*/
pages_written += mpd.pages_written;
wbc->pages_skipped = pages_skipped;
ret = 0;
io_done = 1;
} else if (wbc->nr_to_write)
Expand All @@ -3073,11 +3068,6 @@ static int ext4_da_writepages(struct address_space *mapping,
wbc->range_end = mapping->writeback_index - 1;
goto retry;
}
if (pages_skipped != wbc->pages_skipped)
ext4_msg(inode->i_sb, KERN_CRIT,
"This should not happen leaving %s "
"with nr_to_write = %ld ret = %d",
__func__, wbc->nr_to_write, ret);

/* Update index */
wbc->range_cyclic = range_cyclic;
Expand Down

0 comments on commit 524b9fa

Please sign in to comment.