diff options
author | David Howells <[email protected]> | 2024-01-09 17:54:35 +0000 |
---|---|---|
committer | David Howells <[email protected]> | 2024-01-22 21:57:13 +0000 |
commit | c40497d82387188f14d9adc4caa58ee1cb1999e1 (patch) | |
tree | 66431e1b9d5142b2464f4ebcf71b9d8bfae805a4 /scripts/generate_rust_analyzer.py | |
parent | fa7d614da3c556c7ef71023cb8c410a3e8571a42 (diff) |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions