Thread (35 messages) 35 messages, 7 authors, 2020-07-12

Re: [PATCH v5 01/16] md/raid456: covert macro define of STRIPE_* as members of struct r5conf

From: Paul Menzel <hidden>
Date: 2020-07-02 18:23:00

Dear Yufen,


Am 02.07.20 um 20:15 schrieb Song Liu:
On Thu, Jul 2, 2020 at 5:05 AM Yufen Yu [off-list ref] wrote:
quoted
We covert STRIPE_SIZE, STRIPE_SHIFT and STRIPE_SECTORS to stripe_size,
stripe_shift and stripe_sectors as members of struct r5conf. Then each
raid456 array can config different stripe_size. This patch is prepared
for following configurable stripe_size.

Simply replace word STRIPE_ with conf->stripe_ and add 'conf' argument
for function stripe_hash_locks_hash() and r5_next_bio() to get stripe_size.
After that, we initialize stripe_size into setup_conf().

Signed-off-by: Yufen Yu <redacted>
This patch looks good. Please fix the warning found by the kernel test bot.
Also a nitpick below.
Please also fix the typo *covert* to *Convert* in the commit message 
summary, and maybe use *to* instead of *as*.

 > Convert macro define of STRIPE_* to members of struct r5conf

[…]


Kind regards,

Paul
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help