cifs: Handle transition to filemap_get_folios_tag()

filemap_get_folios_tag() is being added and find_get_pages_range_tag() is
being removed in effectively a single event.  This causes a problem for
the:

    cifs: Change the I/O paths to use an iterator rather than a page list

patch[1] on the cifs/for-next branch as it's adding a new user of the
latter (which is going away), but can't yet be converted to using the
former (which doesn't yet exist upstream).

Here's a conversion patch that could be applied at merge time to deal with
this.  The new cifs_writepages_region() is based directly on
afs_writepages_region() and the AFS changes in the mm tree[2]:

    commit acc8d8588cb7e3e64b0d2fa611dad06574cd67b1
    Author: Vishal Moola (Oracle) <vishal.moola@gmail.com>
    afs: convert afs_writepages_region() to use filemap_get_folios_tag()

can be replicated in cifs almost exactly.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Stephen Rothwell <sfr@canb.auug.org.au>
cc: Steve French <sfrench@samba.org>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Tom Talpey <tom@talpey.com>
cc: Paulo Alcantara <pc@cjr.nz>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Link: https://lore.kernel.org/r/20230216214745.3985496-15-dhowells@redhat.com/ [1]
Link: https://lore.kernel.org/r/20230104211448.4804-6-vishal.moola@gmail.com/ [2]
1 file changed