Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273142
b: refs/heads/master
c: 1bce63d
h: refs/heads/master
v: v3
  • Loading branch information
Shaohua Li authored and Theodore Ts'o committed Oct 18, 2011
1 parent 67583c0 commit 8fc41f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f6f96fdb8c2779f9bd8ed7b0b08405b4439c982b
refs/heads/master: 1bce63d1a2a2c8929442b79acd4eab2e3db10a0b
3 changes: 3 additions & 0 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,7 @@ static int ext4_da_writepages(struct address_space *mapping,
struct ext4_sb_info *sbi = EXT4_SB(mapping->host->i_sb);
pgoff_t done_index = 0;
pgoff_t end;
struct blk_plug plug;

trace_ext4_da_writepages(inode, wbc);

Expand Down Expand Up @@ -2238,6 +2239,7 @@ static int ext4_da_writepages(struct address_space *mapping,
if (wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages)
tag_pages_for_writeback(mapping, index, end);

blk_start_plug(&plug);
while (!ret && wbc->nr_to_write > 0) {

/*
Expand Down Expand Up @@ -2302,6 +2304,7 @@ static int ext4_da_writepages(struct address_space *mapping,
*/
break;
}
blk_finish_plug(&plug);
if (!io_done && !cycled) {
cycled = 1;
index = 0;
Expand Down

0 comments on commit 8fc41f1

Please sign in to comment.