Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130861
b: refs/heads/master
c: 3eb1429
h: refs/heads/master
i:
  130859: 9a20f33
v: v3
  • Loading branch information
Adrian Hunter authored and Artem Bityutskiy committed Jan 29, 2009
1 parent 28c7e64 commit df62870
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 4a29d2005b0f28d018d36d209c47f3973a725df5
refs/heads/master: 3eb14297c4b85af0c5e6605e18d93b6031330d71
20 changes: 10 additions & 10 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,16 +450,6 @@ static int ubifs_sync_fs(struct super_block *sb, int wait)
if (sb->s_flags & MS_RDONLY)
return 0;

/*
* Synchronize write buffers, because 'ubifs_run_commit()' does not
* do this if it waits for an already running commit.
*/
for (i = 0; i < c->jhead_cnt; i++) {
err = ubifs_wbuf_sync(&c->jheads[i].wbuf);
if (err)
return err;
}

/*
* VFS calls '->sync_fs()' before synchronizing all dirty inodes and
* pages, so synchronize them first, then commit the journal. Strictly
Expand All @@ -471,6 +461,16 @@ static int ubifs_sync_fs(struct super_block *sb, int wait)
*/
generic_sync_sb_inodes(sb, &wbc);

/*
* Synchronize write buffers, because 'ubifs_run_commit()' does not
* do this if it waits for an already running commit.
*/
for (i = 0; i < c->jhead_cnt; i++) {
err = ubifs_wbuf_sync(&c->jheads[i].wbuf);
if (err)
return err;
}

err = ubifs_run_commit(c);
if (err)
return err;
Expand Down

0 comments on commit df62870

Please sign in to comment.