summaryrefslogtreecommitdiffstats
path: root/fs/netfs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2024-01-09 17:54:35 +0000
committerDavid Howells <dhowells@redhat.com>2024-01-22 21:57:13 +0000
commitc40497d82387188f14d9adc4caa58ee1cb1999e1 (patch)
tree66431e1b9d5142b2464f4ebcf71b9d8bfae805a4 /fs/netfs
parentfa7d614da3c556c7ef71023cb8c410a3e8571a42 (diff)
downloadlinux-c40497d82387188f14d9adc4caa58ee1cb1999e1.tar.gz
linux-c40497d82387188f14d9adc4caa58ee1cb1999e1.tar.bz2
linux-c40497d82387188f14d9adc4caa58ee1cb1999e1.zip
cifs: Don't use certain unnecessary folio_*() functions
Filesystems should use folio->index and folio->mapping, instead of folio_index(folio), folio_mapping() and folio_file_mapping() since they know that it's in the pagecache. Change this automagically with: perl -p -i -e 's/folio_mapping[(]([^)]*)[)]/\1->mapping/g' fs/smb/client/*.c perl -p -i -e 's/folio_file_mapping[(]([^)]*)[)]/\1->mapping/g' fs/smb/client/*.c perl -p -i -e 's/folio_index[(]([^)]*)[)]/\1->index/g' fs/smb/client/*.c Reported-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: David Howells <dhowells@redhat.com> cc: Jeff Layton <jlayton@kernel.org> cc: Steve French <sfrench@samba.org> cc: Paulo Alcantara <pc@manguebit.com> cc: Ronnie Sahlberg <lsahlber@redhat.com> cc: Shyam Prasad N <sprasad@microsoft.com> cc: Tom Talpey <tom@talpey.com> cc: linux-cifs@vger.kernel.org cc: linux-fsdevel@vger.kernel.org
Diffstat (limited to 'fs/netfs')
0 files changed, 0 insertions, 0 deletions