Skip to contentSkip to conversation

f2fs: remove redundant block plug

PATCH New Chao Yu 1 participant 1 message Apr 4, 2018 F2FS file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/1 f2fs: remove redundant block plug

For buffered IO, we don't need to use block plug to cache bio, for direct IO, generic f2fs_direct_IO has already added block plug, so let's remove redundant one in .write_iter.

---
 fs/f2fs/file.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/file.c +1 -2
index fa8f7cf1498f..5ecf1e355a97 100644
@@ -2943,9 +2943,8 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
 			inode_unlock(inode);
 			return err;
 		}
-		blk_start_plug(&plug);
+
 		ret = __generic_file_write_iter(iocb, from);
-		blk_finish_plug(&plug);
 		clear_inode_flag(inode, FI_NO_PREALLOC);
 
 		if (ret > 0)
Signature · 1 line
2.15.0.55.gc2ece9dc4de6