linux-next: manual merge of the percpu tree with the ext4 tree
Subsystems (2)
Hi all,
Today's linux-next merge of the percpu tree got a conflict in fs/ext4/super.c between commit eb68d0e2fc5a ("ext4: track extent status tree shrinker delay statictics") from the ext4 tree and commit 908c7f1949cb ("percpu_counter: add @gfp to percpu_counter_init()") from the percpu tree.
I fixed it up (the former removed a reference to percpu_counter_init) and can carry the fix as necessary (no action is required).
That commit also added two references in fs/ext4/extents_status.c (thus proving that modifying a little used API causes it to be used more :-)), so I added the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Mon, 8 Sep 2014 16:25:46 +1000
Subject: [PATCH] percpu_counter: fix for ext4 updates
--- fs/ext4/extents_status.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
fs/ext4/extents_status.c +3 -2
@@ -13,6 +13,7 @@#include <linux/list_sort.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> +#include <linux/gfp.h> #include "ext4.h" #include "extents_status.h"
@@ -1189,10 +1190,10 @@ int ext4_es_register_shrinker(struct ext4_sb_info *sbi) sbi->s_es_stats.es_stats_cache_misses =0 ; sbi->s_es_stats.es_stats_scan_time =0 ; sbi->s_es_stats.es_stats_max_scan_time =0 ; - err =percpu_counter_init (&sbi->s_es_stats.es_stats_all_cnt,0 ); + err =percpu_counter_init (&sbi->s_es_stats.es_stats_all_cnt,0 ,GFP_KERNEL );if (err)return err; - err =percpu_counter_init (&sbi->s_es_stats.es_stats_lru_cnt,0 ); + err =percpu_counter_init (&sbi->s_es_stats.es_stats_lru_cnt,0 ,GFP_KERNEL );if (err) goto err1;
Signature · 5 lines
2.1.0 -- Cheers, Stephen Rothwell [email protected]
Hi Ted,
Quoted 7 lines · On Mon, 8 Sep 2014 16:41:14 +1000 Stephen Rothwell <[email protected]> wrote:
Today's linux-next merge of the percpu tree got a conflict in
fs/ext4/super.cbetween commiteb68d0e2fc5a("ext4: track extent status tree shrinker delay statictics") from the ext4 tree and commit908c7f1949cb("percpu_counter: add @gfp topercpu_counter_init()") from the percpu tree.
Quoted 6 lines
I fixed it up (the former removed a reference to
percpu_counter_init) and can carry the fix as necessary (no action is required).That commit also added two references in
fs/ext4/extents_status.c(thus proving that modifying a little used API causes it to be used more :-)), so I added the following merge fix patch:
This patch is now needed when I merge the ext4 tree with Linus' tree ... so please let Linus know when you send your pull request.
Quoted 34 lines
From: Stephen Rothwell <[email protected]>
Date: Mon, 8 Sep 2014 16:25:46 +1000
Subject: [PATCH]percpu_counter: fix for ext4 updatesSigned-off-by Stephen Rothwell <[email protected]>--- fs/ext4/extents_status.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)fs/ext4/extents_status.c +3
-2@@ -13,6 +13,7 @@#include <linux/list_sort.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> +#include <linux/gfp.h> #include "ext4.h" #include "extents_status.h" @@ -1189,10 +1190,10 @@ int ext4_es_register_shrinker(struct ext4_sb_info *sbi) sbi->s_es_stats.es_stats_cache_misses =0 ; sbi->s_es_stats.es_stats_scan_time =0 ; sbi->s_es_stats.es_stats_max_scan_time =0 ; - err =percpu_counter_init (&sbi->s_es_stats.es_stats_all_cnt,0 ); + err =percpu_counter_init (&sbi->s_es_stats.es_stats_all_cnt,0 ,GFP_KERNEL );if (err)return err; - err =percpu_counter_init (&sbi->s_es_stats.es_stats_lru_cnt,0 ); + err =percpu_counter_init (&sbi->s_es_stats.es_stats_lru_cnt,0 ,GFP_KERNEL );if (err) goto err1;
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]