From: Ryusuke Konishi Date: Thu, 31 May 2012 23:26:11 +0000 (-0700) Subject: nilfs2: flush disk caches in syncing X-Git-Tag: v3.5-rc1~21^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11475975dd3c0a8e639f1544ef6530373de5979e;p=pandora-kernel.git nilfs2: flush disk caches in syncing There are two cases that the cache flush is needed to avoid data loss against unexpected hang or power failure. One is sync file function (i.e. nilfs_sync_file) and another is checkpointing ioctl. This issues a cache flush request to device for such cases if barrier mount option is enabled, and makes sure data really is on persistent storage on their completion. Signed-off-by: Ryusuke Konishi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed