Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273147
b: refs/heads/master
c: 8de49e6
h: refs/heads/master
i:
  273145: 72f2e1a
  273143: 0c9e192
v: v3
  • Loading branch information
Kazuya Mio authored and Theodore Ts'o committed Oct 20, 2011
1 parent 1a2a815 commit c2e9cfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 09e0834fb0ce1ea2a63885177015bd5d7d2bc22d
refs/heads/master: 8de49e674a1133ab8998914a6e933ceb4b5f4b07
13 changes: 8 additions & 5 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,9 +1552,11 @@ static void mpage_da_map_and_submit(struct mpage_da_data *mpd)

if (ext4_should_order_data(mpd->inode)) {
err = ext4_jbd2_file_inode(handle, mpd->inode);
if (err)
if (err) {
/* Only if the journal is aborted */
return;
mpd->retval = err;
goto submit_io;
}
}
}

Expand Down Expand Up @@ -2294,11 +2296,12 @@ static int ext4_da_writepages(struct address_space *mapping,
ret = 0;
} else if (ret == MPAGE_DA_EXTENT_TAIL) {
/*
* got one extent now try with
* rest of the pages
* Got one extent now try with rest of the pages.
* If mpd.retval is set -EIO, journal is aborted.
* So we don't need to write any more.
*/
pages_written += mpd.pages_written;
ret = 0;
ret = mpd.retval;
io_done = 1;
} else if (wbc->nr_to_write)
/*
Expand Down

0 comments on commit c2e9cfc

Please sign in to comment.