Merge tag 'usb-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux-2.6-microblaze.git] / mm / folio-compat.c
index 46fa179..20bc15b 100644 (file)
@@ -131,12 +131,10 @@ struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index,
 EXPORT_SYMBOL(pagecache_get_page);
 
 struct page *grab_cache_page_write_begin(struct address_space *mapping,
-                                       pgoff_t index, unsigned flags)
+                                       pgoff_t index)
 {
        unsigned fgp_flags = FGP_LOCK | FGP_WRITE | FGP_CREAT | FGP_STABLE;
 
-       if (flags & AOP_FLAG_NOFS)
-               fgp_flags |= FGP_NOFS;
        return pagecache_get_page(mapping, index, fgp_flags,
                        mapping_gfp_mask(mapping));
 }