Example #1
0
static void do_sync_work(struct work_struct *work)
{
	sync_filesystems(0);
	sync_filesystems(0);
	printk("Emergency Sync complete\n");
	kfree(work);
}
Example #2
0
static void dyn_fsync_force_flush(void)
{
	/* flush all outstanding buffers */
	wakeup_flusher_threads(0);
	sync_filesystems(0);
	sync_filesystems(1);
}
Example #3
0
/*
 * sync everything.  Start out by waking pdflush, because that writes back
 * all queues in parallel.
 */
static void do_sync(void)
{
	wakeup_flusher_threads(0, WB_REASON_SYNC);
	sync_filesystems(0);
	sync_filesystems(1);
	if (unlikely(laptop_mode))
		laptop_sync_completion();
	return;
}
Example #4
0
static void do_sync_work(struct work_struct *work)
{
	/*
	 * Sync twice to reduce the possibility we skipped some inodes / pages
	 * because they were temporarily locked
	 */
	sync_filesystems(0);
	sync_filesystems(0);
	printk("Emergency Sync complete\n");
	kfree(work);
}
Example #5
0
static void dyn_fsync_early_suspend(struct early_suspend *h)
{
	mutex_lock(&fsync_mutex);
	if (dyn_fsync_active) {
	early_suspend_active = true;
#if 1
	wakeup_flusher_threads(0);
	sync_filesystems(0);
	sync_filesystems(1);
#endif
	}
	mutex_unlock(&fsync_mutex);
}
Example #6
0
/*
 * sync everything.  Start out by waking pdflush, because that writes back
 * all queues in parallel.
 */
static void do_sync(unsigned long wait)
{
	wakeup_pdflush(0);
	sync_inodes(0);		/* All mappings, inodes and their blockdevs */
	DQUOT_SYNC(NULL);
	sync_supers();		/* Write the superblocks */
	sync_filesystems(0);	/* Start syncing the filesystems */
	sync_filesystems(wait);	/* Waitingly sync the filesystems */
	sync_inodes(wait);	/* Mappings, inodes and blockdevs, again. */
	if (!wait)
		printk("Emergency Sync complete\n");
	if (unlikely(laptop_mode))
		laptop_sync_completion();
}
Example #7
0
static void dyn_fsync_early_suspend(struct early_suspend *h)
{
	mutex_lock(&fsync_mutex);
	if (dyn_fsync_active) {
		early_suspend_active = true;
#if 1
		/* flush all outstanding buffers */
		wakeup_flusher_threads(0, WB_REASON_SYNC);
		sync_filesystems(0);
		sync_filesystems(1);
#endif
	}
	mutex_unlock(&fsync_mutex);
}
static void dyn_fsync_force_flush(void)
{
    /* flush all outstanding buffers */
    wakeup_flusher_threads(0, WB_REASON_SYNC);
    sync_filesystems();
}
static void dyn_fsync_force_flush(void)
{
	sync_filesystems(0);
	sync_filesystems(1);
}