Merge tag 'mm-stable-2023-04-27-15-30' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / fs / iomap / buffered-io.c
index 96bb56c203f49d0c3b8f96c01db03f0b194ab2bc..063133ec77f49ecb353739d0110f82144b1c85f5 100644 (file)
@@ -467,7 +467,7 @@ EXPORT_SYMBOL_GPL(iomap_is_partially_uptodate);
  */
 struct folio *iomap_get_folio(struct iomap_iter *iter, loff_t pos)
 {
-       unsigned fgp = FGP_LOCK | FGP_WRITE | FGP_CREAT | FGP_STABLE | FGP_NOFS;
+       unsigned fgp = FGP_WRITEBEGIN | FGP_NOFS;
 
        if (iter->flags & IOMAP_NOWAIT)
                fgp |= FGP_NOWAIT;