Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1572296 > unrolled thread

[PATCH] ext4: fix up huge_fault rename

Started byArnd Bergmann <arnd@arndb.de>
First post2017-02-02 12:40 +0100
Last post2017-02-02 21:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ext4: fix up huge_fault rename Arnd Bergmann <arnd@arndb.de> - 2017-02-02 12:40 +0100
    Re: [PATCH] ext4: fix up huge_fault rename Ross Zwisler <ross.zwisler@linux.intel.com> - 2017-02-02 21:10 +0100

#1572296 — [PATCH] ext4: fix up huge_fault rename

FromArnd Bergmann <arnd@arndb.de>
Date2017-02-02 12:40 +0100
Subject[PATCH] ext4: fix up huge_fault rename
Message-ID<t6nU5-3lz-23@gated-at.bofh.it>
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 <arnd@arndb.de>
---
 fs/ext4/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index ed22d20e843c..e1a581133aa1 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -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
-- 
2.9.0

[toc] | [next] | [standalone]


#1572719

FromRoss Zwisler <ross.zwisler@linux.intel.com>
Date2017-02-02 21:10 +0100
Message-ID<t6vRE-aV-19@gated-at.bofh.it>
In reply to#1572296
On Thu, Feb 02, 2017 at 12:36:12PM +0100, Arnd Bergmann wrote:
> 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 <arnd@arndb.de>
> ---
>  fs/ext4/file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ext4/file.c b/fs/ext4/file.c
> index ed22d20e843c..e1a581133aa1 100644
> --- a/fs/ext4/file.c
> +++ b/fs/ext4/file.c
> @@ -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
> -- 
> 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web