ext4: factor out checks from ext4_file_write_iter()
authorJan Kara <jack@suse.cz>
Sun, 20 Nov 2016 22:29:51 +0000 (17:29 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 20 Nov 2016 22:29:51 +0000 (17:29 -0500)
commit213bcd9ccbf04b709e4764ad89aaaa66a47785f0
treea298ecf92d826d22a1a9a27760d39b05ba4f8b9a
parentc48ae41bafe31e9a66d8be2ced4e42a6b57fa814
ext4: factor out checks from ext4_file_write_iter()

Factor out checks of 'from' and whether we are overwriting out of
ext4_file_write_iter() so that the function is easier to follow.

Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/file.c