ext4: use generic_file_fsync() in ext4_file_fsync() in nojournal mode
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 18:40:09 +0000 (14:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 18:40:09 +0000 (14:40 -0400)
Just use the generic function instead of duplicating it.  We only need
to reshuffle the read-only check a bit (which is there to prevent
writing to a filesystem which has been remounted read-only after error
I assume).

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found