Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109187
b: refs/heads/master
c: 48fd4f9
h: refs/heads/master
i:
  109185: 2ceb9b5
  109183: e09d9f0
v: v3
  • Loading branch information
Jens Axboe committed Aug 27, 2008
1 parent e73f44a commit f18e854
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: a4a778971b9cfcbedb8648ba502d801f7db04c47
refs/heads/master: 48fd4f93a00eac844678629f2f00518e146ed30d
13 changes: 8 additions & 5 deletions trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2926,14 +2926,17 @@ int submit_bh(int rw, struct buffer_head * bh)
BUG_ON(!buffer_mapped(bh));
BUG_ON(!bh->b_end_io);

if (buffer_ordered(bh) && (rw == WRITE))
rw = WRITE_BARRIER;
/*
* Mask in barrier bit for a write (could be either a WRITE or a
* WRITE_SYNC
*/
if (buffer_ordered(bh) && (rw & WRITE))
rw |= WRITE_BARRIER;

/*
* Only clear out a write error when rewriting, should this
* include WRITE_SYNC as well?
* Only clear out a write error when rewriting
*/
if (test_set_buffer_req(bh) && (rw == WRITE || rw == WRITE_BARRIER))
if (test_set_buffer_req(bh) && (rw & WRITE))
clear_buffer_write_io_error(bh);

/*
Expand Down

0 comments on commit f18e854

Please sign in to comment.