diff options
| author | David Howells <[email protected]> | 2024-01-09 17:17:36 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2024-01-22 21:56:11 +0000 |
| commit | 202bc57b675601bc07b5942369ecc16af64d1b95 (patch) | |
| tree | d1a5d76e66889ecd2948c8d30d60efcfc4b04a87 /net/unix/garbage.c | |
| parent | Linux 6.8-rc1 (diff) | |
| download | kernel-202bc57b675601bc07b5942369ecc16af64d1b95.tar.gz kernel-202bc57b675601bc07b5942369ecc16af64d1b95.zip | |
netfs: 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/netfs/*.c
perl -p -i -e 's/folio_file_mapping[(]([^)]*)[)]/\1->mapping/g' fs/netfs/*.c
perl -p -i -e 's/folio_index[(]([^)]*)[)]/\1->index/g' fs/netfs/*.c
Reported-by: Matthew Wilcox <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: Jeff Layton <[email protected]>
cc: [email protected]
cc: [email protected]
cc: [email protected]
cc: [email protected]
cc: [email protected]
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
