f2fs: check read only condition before beginning write out
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 1 Dec 2012 01:56:01 +0000 (10:56 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 11 Dec 2012 04:43:43 +0000 (13:43 +0900)
commit1fa95b0b6798164a31c1048efdf62b71038eb3d5
tree74b664e5effef9e7cf0764f069d3081386a53539
parent154a086529b50236782a2d4365a1d1c359adc7af
f2fs: check read only condition before beginning write out

If the filesystem is mounted as read-only then return from that point itself
instead of first doing a writeout/wait and then checking for read-only
condition.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
fs/f2fs/file.c