|
@@ -13,6 +13,7 @@
|
|
#include <linux/pagemap.h>
|
|
#include <linux/pagemap.h>
|
|
#include <linux/quotaops.h>
|
|
#include <linux/quotaops.h>
|
|
#include <linux/buffer_head.h>
|
|
#include <linux/buffer_head.h>
|
|
|
|
+#include "internal.h"
|
|
|
|
|
|
#define VALID_FLAGS (SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE| \
|
|
#define VALID_FLAGS (SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE| \
|
|
SYNC_FILE_RANGE_WAIT_AFTER)
|
|
SYNC_FILE_RANGE_WAIT_AFTER)
|
|
@@ -26,10 +27,11 @@ static void do_sync(unsigned long wait)
|
|
wakeup_pdflush(0);
|
|
wakeup_pdflush(0);
|
|
sync_inodes(0); /* All mappings, inodes and their blockdevs */
|
|
sync_inodes(0); /* All mappings, inodes and their blockdevs */
|
|
vfs_dq_sync(NULL);
|
|
vfs_dq_sync(NULL);
|
|
|
|
+ sync_inodes(wait); /* Mappings, inodes and blockdevs, again. */
|
|
sync_supers(); /* Write the superblocks */
|
|
sync_supers(); /* Write the superblocks */
|
|
sync_filesystems(0); /* Start syncing the filesystems */
|
|
sync_filesystems(0); /* Start syncing the filesystems */
|
|
sync_filesystems(wait); /* Waitingly sync the filesystems */
|
|
sync_filesystems(wait); /* Waitingly sync the filesystems */
|
|
- sync_inodes(wait); /* Mappings, inodes and blockdevs, again. */
|
|
|
|
|
|
+ sync_blockdevs();
|
|
if (!wait)
|
|
if (!wait)
|
|
printk("Emergency Sync complete\n");
|
|
printk("Emergency Sync complete\n");
|
|
if (unlikely(laptop_mode))
|
|
if (unlikely(laptop_mode))
|