summaryrefslogtreecommitdiff
path: root/fs/ext4/file.c
diff options
context:
space:
mode:
authorShi Siyuan <shisiyuan@xiaomi.com>2019-08-11 16:28:41 -0400
committerTheodore Ts'o <tytso@mit.edu>2019-08-11 16:28:41 -0400
commit991f52306ab8b5d8427f6f953162b5ab92e88e51 (patch)
tree53acf59e6b38ccd3b277084f33ed01fc6efc36aa /fs/ext4/file.c
parent4e34323135ec0752af152ac588a4f96495074849 (diff)
ext4: remove unnecessary error check
Remove unnecessary error check in ext4_file_write_iter(), because this check will be done in upcoming later function -- ext4_write_checks() -> generic_write_checks() Change-Id: I7b0ab27f693a50765c15b5eaa3f4e7c38f42e01e Signed-off-by: shisiyuan <shisiyuan@xiaomi.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/file.c')
-rw-r--r--fs/ext4/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 70b0438dbc94..bc378a7ac950 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -230,8 +230,6 @@ ext4_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
if (IS_DAX(inode))
return ext4_dax_write_iter(iocb, from);
#endif
- if (!o_direct && (iocb->ki_flags & IOCB_NOWAIT))
- return -EOPNOTSUPP;
if (!inode_trylock(inode)) {
if (iocb->ki_flags & IOCB_NOWAIT)