commit | a987c7ca7fc9225a587b1dc59d7d4ad2d9e2e08e | [log] [tgz] |
---|---|---|
author | Younger Liu <younger.liucn@gmail.com> | Mon Feb 10 14:25:44 2014 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Feb 10 16:01:42 2014 -0800 |
tree | 8624277e806b28f2396fe6157b026f00a2089285 | |
parent | 79040cad3f8235937e229f1b9401ba36dd5ad69b [diff] |
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. [akpm@linux-foundation.org: return -EROFS, not 0] 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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>