Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174727
b: refs/heads/master
c: 5f1586d
h: refs/heads/master
i:
  174725: 32f85db
  174723: f4e4b36
  174719: 54ce1bc
v: v3
  • Loading branch information
Ryusuke Konishi committed Nov 29, 2009
1 parent 5df7f0a commit c532e96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: 0935db747739782fc779eb58529610c12db88ea2
refs/heads/master: 5f1586d0dd8f6eeecf6c0d35cbca6291afd6f1cc
11 changes: 2 additions & 9 deletions trunk/fs/nilfs2/segbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ int nilfs_segbuf_write(struct nilfs_segment_buffer *segbuf,
struct nilfs_write_info *wi)
{
struct buffer_head *bh;
int res, rw = WRITE;
int res = 0, rw = WRITE;

list_for_each_entry(bh, &segbuf->sb_segsum_buffers, b_assoc_buffers) {
res = nilfs_submit_bh(wi, bh, rw);
Expand All @@ -395,17 +395,10 @@ int nilfs_segbuf_write(struct nilfs_segment_buffer *segbuf,
*/
rw |= (1 << BIO_RW_SYNCIO) | (1 << BIO_RW_UNPLUG);
res = nilfs_submit_seg_bio(wi, rw);
if (unlikely(res))
goto failed_bio;
}

res = 0;
out:
return res;

failed_bio:
atomic_inc(&wi->err);
goto out;
return res;
}

/**
Expand Down

0 comments on commit c532e96

Please sign in to comment.