md/raid5: fix typo
PATCH 1/2 md/raid5: fix typo
bion -> bios
--- drivers/md/raid5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid5.c +1 -1
@@ -2919,7 +2919,7 @@ schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, }/* -* Each stripe/dev can have one or more bion attached. +* Each stripe/dev can have one or more bios attached. * toread/towrite point to the first in a chain. * The bi_next chain must be in order. */
Signature · 1 line
1.9.0
PATCH 2/2 md/raid5: trivial coding style fix
--- drivers/md/raid5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/md/raid5.c +1 -2
@@ -5789,8 +5789,7 @@ static void raid5d(struct md_thread *thread)if (released)clear_bit (R5_DID_ALLOC , &conf->cache_state); -if ( - !list_empty (&conf->bitmap_list)) { +if (!list_empty (&conf->bitmap_list)) {/* Now is a good time to flush some bitmap updates */ conf->seq_flush++;spin_unlock_irq (&conf->device_lock);
Signature · 1 line
1.9.0
Re: [PATCH 2/2] md/raid5: trivial coding style fix
Quoted 10 lines · On Thu, 30 Apr 2015 15:01:17 +0800 Yuanhan Liu <[email protected]>…
Signed-off-by Yuanhan Liu <[email protected]>--- drivers/md/raid5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/md/raid5.c +0
-0
drivers/md/raid5.c static void raid5d(struct md_thread *thread) · line 5795
Quoted 9 lines
drivers/md/raid5.c +1
-2@@ -5789,8 +5789,7 @@ static void raid5d(struct md_thread *thread)if (released)clear_bit (R5_DID_ALLOC , &conf->cache_state); -if ( - !list_empty (&conf->bitmap_list)) { +if (!list_empty (&conf->bitmap_list)) {/* Now is a good time to flush some bitmap updates */ conf->seq_flush++;spin_unlock_irq (&conf->device_lock);
I'm happy for these sorts of changes when you are fixing up nearby code, or if the change significantly improves readability.
But I'd rather not bother is one-off trivial fixes like this.
Thanks anyway,
NeilBrown
Re: [PATCH 2/2] md/raid5: trivial coding style fix
Quoted 16 lines · NeilBrown
Quoted 13 lines · On Thu, 30 Apr 2015 15:01:17 +0800 Yuanhan Liu <[email protected]>…
Signed-off-by Yuanhan Liu <[email protected]>--- drivers/md/raid5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/md/raid5.c +0
-0@@ -5789,8 +5789,7 @@ static void raid5d(struct md_thread *thread)if (released)clear_bit (R5_DID_ALLOC , &conf->cache_state);
Quoted 11 lines
drivers/md/raid5.c static void raid5d(struct md_thread *thread) · line 5795
Quoted 6 lines
drivers/md/raid5.c +1
-2-if ( - !list_empty (&conf->bitmap_list)) { +if (!list_empty (&conf->bitmap_list)) {/* Now is a good time to flush some bitmap updates */ conf->seq_flush++;spin_unlock_irq (&conf->device_lock);I'm happy for these sorts of changes when you are fixing up nearby code, or if the change significantly improves readability.
But I'd rather not bother is one-off trivial fixes like this.
Got it.
--yliu
Quoted 12 lines · On Thu, 30 Apr 2015 15:01:16 +0800 Yuanhan Liu <[email protected]>…
bion -> bios
Signed-off-by Yuanhan Liu <[email protected]>--- drivers/md/raid5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/md/raid5.c +0
-0
drivers/md/raid5.c schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, · line 2925
Quoted 8 lines
drivers/md/raid5.c +1
-1@@ -2919,7 +2919,7 @@ schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, }/* -* Each stripe/dev can have one or more bion attached. +* Each stripe/dev can have one or more bios attached. * toread/towrite point to the first in a chain. * The bi_next chain must be in order. */
That was intentional. "bios" as a plural looks too much like "BIOS" which is in the ROM of computers.
Children and oxen are plurals with an 'n' at the end. So I used 'bion'. Private joke?
I'd rather leave it as it is.
Thanks,
NeilBrown
Quoted 27 lines · NeilBrown
Quoted 12 lines · On Thu, 30 Apr 2015 15:01:16 +0800 Yuanhan Liu <[email protected]>…
bion -> bios
Signed-off-by Yuanhan Liu <[email protected]>--- drivers/md/raid5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/md/raid5.c +0
-0drivers/md/raid5.c schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, · line 2925
Quoted 8 lines
drivers/md/raid5.c +1
-1@@ -2919,7 +2919,7 @@ schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, }/* -* Each stripe/dev can have one or more bion attached. +* Each stripe/dev can have one or more bios attached. * toread/towrite point to the first in a chain. * The bi_next chain must be in order. */ That was intentional. "bios" as a plural looks too much like "BIOS" which is in the ROM of computers.
Quoted 2 lines
Children and oxen are plurals with an 'n' at the end. So I used 'bion'. Private joke?
Interesting.
Quoted 2 lines
I'd rather leave it as it is.
Okay, and sorry for the noise.
--yliu