Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154908
b: refs/heads/master
c: 3beab0b
h: refs/heads/master
v: v3
  • Loading branch information
Zhang, Yanmin authored and Linus Torvalds committed Jul 6, 2009
1 parent ea403aa commit bd7f4ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f386c61fe1a1f36f0e434f1b577e6b112698caf7
refs/heads/master: 3beab0b42413e83a7907db7176b54c840fc75a81
5 changes: 5 additions & 0 deletions trunk/fs/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,13 @@ static void sync_filesystems(int wait)
mutex_unlock(&mutex);
}

/*
* sync everything. Start out by waking pdflush, because that writes back
* all queues in parallel.
*/
SYSCALL_DEFINE0(sync)
{
wakeup_pdflush(0);
sync_filesystems(0);
sync_filesystems(1);
if (unlikely(laptop_mode))
Expand Down

0 comments on commit bd7f4ea

Please sign in to comment.