aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2024-01-09 17:54:35 +0000
committerDavid Howells <[email protected]>2024-01-22 21:57:13 +0000
commitc40497d82387188f14d9adc4caa58ee1cb1999e1 (patch)
tree66431e1b9d5142b2464f4ebcf71b9d8bfae805a4 /net/unix/garbage.c
parentafs: Don't use certain unnecessary folio_*() functions (diff)
downloadkernel-c40497d82387188f14d9adc4caa58ee1cb1999e1.tar.gz
kernel-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 <[email protected]> Signed-off-by: David Howells <[email protected]> cc: Jeff Layton <[email protected]> cc: Steve French <[email protected]> cc: Paulo Alcantara <[email protected]> cc: Ronnie Sahlberg <[email protected]> cc: Shyam Prasad N <[email protected]> cc: Tom Talpey <[email protected]> cc: [email protected] cc: [email protected]
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions