misc: tizen-inform-reboot: resolve sync failure about reboot parameter
authorJunghoon Kim <jhoon20.kim@samsung.com>
Tue, 17 Oct 2017 05:43:04 +0000 (14:43 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:43:00 +0000 (17:43 +0900)
commitb0008436c158ee4b4bbb85fe3cf14ca71783b6ff
treeb56a6cb94dbe61cf8e350ba8b136634c50dd7a19
parentf8dd2a29af67276c2f3b40b5ade353cc1ac53f5d
misc: tizen-inform-reboot: resolve sync failure about reboot parameter

Currently, writing reboot paramter into INFORM partition fails
infrequently.

Resolve this issue by calling sync_filesystem function so that it writes
out and waits upon all dirty data associated with this superblock.

Change-Id: Ic62df0c3c4e565ca7211eb85661ead6979f0ad8d
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
drivers/misc/tizen-inform-reboot.c