]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: fix flushing folio regression for 6.1 backport
authorSteve French <stfrench@microsoft.com>
Sat, 13 Jan 2024 05:08:51 +0000 (23:08 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2024 17:54:51 +0000 (18:54 +0100)
commitf9ee31dc7fcd3b5e9770561542a8355bf5de2a0b
tree2119197e013248012adf5f639177cedfecf2bebb
parent0f22c8a6efe63c16d1abf1e6c0317abbf121f883
cifs: fix flushing folio regression for 6.1 backport

filemap_get_folio works differenty in 6.1 vs. later kernels
(returning NULL in 6.1 instead of an error).  Add
this minor correction which addresses the regression in the patch:
  cifs: Fix flushing, invalidation and file size with copy_file_range()

Link: https://lore.kernel.org/all/a76b370f93cb928c049b94e1fde0d2da506dfcb2.camel@amazon.com/
Reported-by: "Jitindar Singh, Suraj" <surajjs@amazon.com>
Suggested-by: David Howells <dhowells@redhat.com>
Reported-by: Salvatore Bonaccorso <carnil@debian.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifsfs.c