mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
f2fs: drop FGP_NOFS in f2fs_write_begin()
This patch proposes to drop FGP_NOFS from f2fs_filemap_get_folio() in f2fs_write_begin(), I don't see there is potential deadlock issue when __filemap_get_folio() calling into filesystem reclaim interfaces, e.g. .writepages, evict_inode, shrinker. Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
62cc902415
commit
35e5554ec1
|
|
@ -3975,7 +3975,7 @@ static int f2fs_write_begin(const struct kiocb *iocb,
|
|||
* Will wait that below with our IO control.
|
||||
*/
|
||||
folio = f2fs_filemap_get_folio(mapping, index,
|
||||
FGP_LOCK | FGP_WRITE | FGP_CREAT | FGP_NOFS,
|
||||
FGP_LOCK | FGP_WRITE | FGP_CREAT,
|
||||
mapping_gfp_mask(mapping));
|
||||
if (IS_ERR(folio)) {
|
||||
err = PTR_ERR(folio);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user