Skip to contentSkip to conversation

f2fs: remove nested usage of plug list

PATCH Superseded Yunlei He 1 participant 1 message Apr 8, 2018 F2FS file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yunlei He

author
#0 lore raw

PATCH 1/1 f2fs: remove nested usage of plug list

-f2fs_file_write_iter
-blk_start_plug

    -__generic_file_write_iter
	...
	  -do_blockdev_direct_IO
	    -blk_start_plug
		...
	    -blk_finish_plug
	...

-blk_finish_plug

which may conduct performance decrease in our platform

---
 fs/f2fs/file.c | 2 --
 1 file changed, 2 deletions(-)
fs/f2fs/file.c +0 -2
index 6b94f19..6ce27ab 100644
@@ -2939,9 +2939,7 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
 				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 we couldn't write data, we should deallocate blocks. */
Signature · 6 lines
1.9.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot