]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
afs: Pass page into dirty region helpers to provide THP size
authorDavid Howells <dhowells@redhat.com>
Wed, 28 Oct 2020 14:23:46 +0000 (14:23 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Jan 2021 10:56:58 +0000 (10:56 +0000)
commitaf6ab9406378dc1605d4f495e3223224f95a771d
tree6899dacb779e2cbfdb51a917e12be3358bc66d7e
parentf66aa628e7b25b73b1418f30ae5e791da10da21e
afs: Pass page into dirty region helpers to provide THP size

Pass a pointer to the page being accessed into the dirty region helpers so
that the size of the page can be determined in case it's a transparent huge
page.

This also required the page to be passed into the afs_page_dirty trace
point - so there's no need to specifically pass in the index or private
data as these can be retrieved directly from the page struct.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/file.c
fs/afs/internal.h
fs/afs/write.c
include/trace/events/afs.h