Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126251
b: refs/heads/master
c: e8ea175
h: refs/heads/master
i:
  126249: d045041
  126247: bb31aab
v: v3
  • Loading branch information
Artem Bityutskiy authored and Linus Torvalds committed Jan 6, 2009
1 parent 062059d commit b55b87b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 48b47c561e41525061b5bc0cfd67d6367fd11dc4
refs/heads/master: e8ea1759138d4279869f52bfb7dca8f02f8ccfe5
9 changes: 8 additions & 1 deletion trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,19 @@ static int ubifs_sync_fs(struct super_block *sb, int wait)
int i, err;
struct ubifs_info *c = sb->s_fs_info;
struct writeback_control wbc = {
.sync_mode = wait ? WB_SYNC_ALL : WB_SYNC_HOLD,
.sync_mode = wait ? WB_SYNC_ALL : WB_SYNC_NONE,
.range_start = 0,
.range_end = LLONG_MAX,
.nr_to_write = LONG_MAX,
};

/*
* Note by akpm about WB_SYNC_NONE used above: zero @wait is just an
* advisory thing to help the file system shove lots of data into the
* queues. If some gets missed then it'll be picked up on the second
* '->sync_fs()' call, with non-zero @wait.
*/

if (sb->s_flags & MS_RDONLY)
return 0;

Expand Down

0 comments on commit b55b87b

Please sign in to comment.