Skip to contentSkip to conversation

ext4: remove unnecessary error check

PATCH Applied Shi Siyuan 2 participants 2 messages Jul 3, 2019 – Jul 18, 2019 1 message not in the archive ext4 file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Shi Siyuan

author
#1 lore raw

PATCH 1/1 ext4: remove unnecessary error check

From: shisiyuan <[email protected]>

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
---
 fs/ext4/file.c | 2 --
 1 file changed, 2 deletions(-)
fs/ext4/file.c +0 -2
index 5cb9aa3..9e4c39e 100644
@@ -224,8 +224,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)
Signature · 1 line
2.7.4
maintainer Applied
#2 lore raw
Quoted 8 lines · Shi Siyuan

From: shisiyuan <[email protected]>

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

Thanks, applied.

- Ted