aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/documentation-file-ref-check
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2024-01-09 17:51:08 +0000
committerDavid Howells <dhowells@redhat.com>2024-01-22 21:56:54 +0000
commitfa7d614da3c556c7ef71023cb8c410a3e8571a42 (patch)
tree9726dd7ede8b2af133007d1d51e8f543da5dea50 /scripts/documentation-file-ref-check
parentnetfs: Don't use certain unnecessary folio_*() functions (diff)
downloadlinux-rng-fa7d614da3c556c7ef71023cb8c410a3e8571a42.tar.xz
linux-rng-fa7d614da3c556c7ef71023cb8c410a3e8571a42.zip
afs: 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/afs/*.c perl -p -i -e 's/folio_file_mapping[(]([^)]*)[)]/\1->mapping/g' fs/afs/*.c perl -p -i -e 's/folio_index[(]([^)]*)[)]/\1->index/g' fs/afs/*.c Reported-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org cc: linux-fsdevel@vger.kernel.org
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions