From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ming Lei Subject: Re: [PATCH v3 02/14] md: move two macros into md.h Date: Fri, 24 Mar 2017 14:30:27 +0800 Message-ID: References: <20170316161235.27110-1-tom.leiming@gmail.com> <20170316161235.27110-3-tom.leiming@gmail.com> <87tw6j8be6.fsf@notabene.neil.brown.name> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <87tw6j8be6.fsf@notabene.neil.brown.name> Sender: linux-raid-owner@vger.kernel.org To: NeilBrown Cc: Shaohua Li , Jens Axboe , "open list:SOFTWARE RAID (Multiple Disks) SUPPORT" , linux-block , Christoph Hellwig List-Id: linux-raid.ids On Fri, Mar 24, 2017 at 1:57 PM, NeilBrown wrote: > On Fri, Mar 17 2017, Ming Lei wrote: > >> Both raid1 and raid10 share common resync >> block size and page count, so move them into md.h. > > I don't think this is necessary. > These are just "magic" numbers. They don't have any real > meaning and so don't belong in md.h, or and .h file. The thing is that RESYNC_PAGES is needed in the following patch 3: [PATCH v3 03/14] md: prepare for managing resync I/O pages in clean way so how about moving the macros into raid1-10.h? Cause you suggest to create that header for holding the introduced helpers in patch3. Thanks, Ming