diff options
author | Younger Liu <younger.liucn@gmail.com> | 2014-02-10 14:25:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-02-10 16:01:42 -0800 |
commit | a987c7ca7fc9225a587b1dc59d7d4ad2d9e2e08e (patch) | |
tree | 8624277e806b28f2396fe6157b026f00a2089285 /sound/ppc/awacs.h | |
parent | 79040cad3f8235937e229f1b9401ba36dd5ad69b (diff) | |
download | op-kernel-dev-a987c7ca7fc9225a587b1dc59d7d4ad2d9e2e08e.zip op-kernel-dev-a987c7ca7fc9225a587b1dc59d7d4ad2d9e2e08e.tar.gz |
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>
Diffstat (limited to 'sound/ppc/awacs.h')
0 files changed, 0 insertions, 0 deletions