Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19459
b: refs/heads/master
c: 3d4492f
h: refs/heads/master
i:
  19457: 0e47109
  19455: 817dcf0
v: v3
  • Loading branch information
Chris Mason authored and Linus Torvalds committed Feb 1, 2006
1 parent a2c3c56 commit e5201f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 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: e0e851cf30f1a9bd2e2a7624e9810378d6a2b072
refs/heads/master: 3d4492f81dd7b486f1be0616a1ce7f73760f406e
15 changes: 13 additions & 2 deletions trunk/fs/reiserfs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,14 @@ static int write_ordered_buffers(spinlock_t * lock,
spin_lock(lock);
goto loop_next;
}
/* in theory, dirty non-uptodate buffers should never get here,
* but the upper layer io error paths still have a few quirks.
* Handle them here as gracefully as we can
*/
if (!buffer_uptodate(bh) && buffer_dirty(bh)) {
clear_buffer_dirty(bh);
ret = -EIO;
}
if (buffer_dirty(bh)) {
list_del_init(&jh->list);
list_add(&jh->list, &tmp);
Expand Down Expand Up @@ -1030,9 +1038,12 @@ static int flush_commit_list(struct super_block *s,
}

if (!list_empty(&jl->j_bh_list)) {
int ret;
unlock_kernel();
write_ordered_buffers(&journal->j_dirty_buffers_lock,
journal, jl, &jl->j_bh_list);
ret = write_ordered_buffers(&journal->j_dirty_buffers_lock,
journal, jl, &jl->j_bh_list);
if (ret < 0 && retval == 0)
retval = ret;
lock_kernel();
}
BUG_ON(!list_empty(&jl->j_bh_list));
Expand Down

0 comments on commit e5201f9

Please sign in to comment.