|
@@ -105,7 +105,7 @@ static void fdatawait_one_bdev(struct block_device *bdev, void *arg)
|
|
|
* just write metadata (such as inodes or bitmaps) to block device page cache
|
|
|
* and do not sync it on their own in ->sync_fs().
|
|
|
*/
|
|
|
-SYSCALL_DEFINE0(sync)
|
|
|
+void ksys_sync(void)
|
|
|
{
|
|
|
int nowait = 0, wait = 1;
|
|
|
|
|
@@ -117,6 +117,11 @@ SYSCALL_DEFINE0(sync)
|
|
|
iterate_bdevs(fdatawait_one_bdev, NULL);
|
|
|
if (unlikely(laptop_mode))
|
|
|
laptop_sync_completion();
|
|
|
+}
|
|
|
+
|
|
|
+SYSCALL_DEFINE0(sync)
|
|
|
+{
|
|
|
+ ksys_sync();
|
|
|
return 0;
|
|
|
}
|
|
|
|