Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 991f5230 authored by Shi Siyuan's avatar Shi Siyuan Committed by Theodore Ts'o
Browse files

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: default avatarshisiyuan <shisiyuan@xiaomi.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 4e343231
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)