ext4: fix up huge_fault rename
PATCH 1/1 ext4: fix up huge_fault rename
It looks like a search+replace accidentally change one function pointer that should have remained as before, as shown by this new warning:
fs/ext4/file.c:279:1: error: 'ext4_dax_huge_fault' defined but not used [-Werror=unused-function]
This reverts the one line of the changeset.
--- fs/ext4/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/file.c +1 -1
@@ -329,7 +329,7 @@ static int ext4_dax_pfn_mkwrite(struct vm_fault *vmf)static const struct vm_operations_struct ext4_dax_vm_ops = { .fault = ext4_dax_fault, .huge_fault = ext4_dax_fault, - .page_mkwrite = ext4_dax_fault, + .page_mkwrite = ext4_dax_huge_fault, .pfn_mkwrite = ext4_dax_pfn_mkwrite, };#else
Signature · 1 line
2.9.0
Quoted 28 lines · Arnd Bergmann
It looks like a search+replace accidentally change one function pointer that should have remained as before, as shown by this new warning:
fs/ext4/file.c:279:1: error: 'ext4_dax_huge_fault' defined but not used [-Werror=unused-function]This reverts the one line of the changeset.
Fixes 80a841811260 ("mm,fs,dax: change ->pmd_fault to ->huge_fault")Signed-off-by Arnd Bergmann <[email protected]>--- fs/ext4/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ext4/file.c +1
-1@@ -329,7 +329,7 @@ static int ext4_dax_pfn_mkwrite(struct vm_fault *vmf)static const struct vm_operations_struct ext4_dax_vm_ops = { .fault = ext4_dax_fault, .huge_fault = ext4_dax_fault, - .page_mkwrite = ext4_dax_fault, + .page_mkwrite = ext4_dax_huge_fault, .pfn_mkwrite = ext4_dax_pfn_mkwrite, };#else Signature · 1 line
2.9.0
Hey Arnd,
I saw this as well, but fixed it by removing ext4_dax_huge_fault() since after Dave's changes ext4_dax_fault() and ext4_dax_huge_fault() are identical.
http://www.spinics.net/lists/linux-mm/msg121117.html
If you're alright with it let's go that way so we can remove a redundant function.
- Ross