]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: fix ocfs2_sync_file() if filesystem is readonly
authorYounger Liu <younger.liucn@gmail.com>
Mon, 16 Dec 2013 23:44:54 +0000 (10:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:44:54 +0000 (10:44 +1100)
commitcd51bd05ac7ffe15e88c098a4cb33729b4a8ab45
treeb57dc7ebb4143b1bc64fa584f2ce7b67f9f44931
parent6b4373c290ceadfab5b5e19de6ab081a2acdcfb5
ocfs2: fix ocfs2_sync_file() if filesystem is readonly

If filesystem is readonly, there is no need to flush drive's caches or
force any uncommitted transactions.

Signed-off-by: Younger Liu <younger.liucn@gmail.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/file.c