Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19674
b: refs/heads/master
c: 5b00226
h: refs/heads/master
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Feb 3, 2006
1 parent 0349204 commit 22bb859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 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: 514a01b880d28a3029d9e35de72ad8d2f95b31d0
refs/heads/master: 5b00226d4d3aa7969d84e16f857ea100465d9c98
14 changes: 2 additions & 12 deletions trunk/fs/fat/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,19 +196,9 @@ EXPORT_SYMBOL_GPL(fat_date_unix2dos);

int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs)
{
int i, e, err = 0;
int i, err = 0;

for (i = 0; i < nr_bhs; i++) {
lock_buffer(bhs[i]);
if (test_clear_buffer_dirty(bhs[i])) {
get_bh(bhs[i]);
bhs[i]->b_end_io = end_buffer_write_sync;
e = submit_bh(WRITE, bhs[i]);
if (!err && e)
err = e;
} else
unlock_buffer(bhs[i]);
}
ll_rw_block(SWRITE, nr_bhs, bhs);
for (i = 0; i < nr_bhs; i++) {
wait_on_buffer(bhs[i]);
if (buffer_eopnotsupp(bhs[i])) {
Expand Down

0 comments on commit 22bb859

Please sign in to comment.