[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ebbfc01c-3f42-483e-a281-1b4572bc8ac2@ursulin.net>
Date: Wed, 14 Feb 2018 16:11:25 +0000
From: Tvrtko Ursulin <tursulin@...ulin.net>
To: Johannes Thumshirn <jthumshirn@...e.de>,
Anshuman Khandual <khandual@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org,
bart.vanassche@....com, axboe@...nel.dk, chris@...is-wilson.co.uk,
tvrtko.ursulin@...el.com
Subject: Re: [PATCH] lib/scatterlist: Add SG_CHAIN and SG_EMARK macros for LSB
encodings
On 14/02/18 08:32, Johannes Thumshirn wrote:
> On Wed, 2018-02-14 at 10:28 +0530, Anshuman Khandual wrote:
>> This replaces scatterlist->page_link LSB encodings with SG_CHAIN and
>> SG_EMARK definitions without any functional change.
>>
>> Signed-off-by: Anshuman Khandual <khandual@...ux.vnet.ibm.com>
>> ---
>> include/linux/scatterlist.h | 23 +++++++++++++----------
>> 1 file changed, 13 insertions(+), 10 deletions(-)
>>
>> diff --git a/include/linux/scatterlist.h
>> b/include/linux/scatterlist.h
>> index 22b2131bcdcd..63d00bdb2fb3 100644
>> --- a/include/linux/scatterlist.h
>> +++ b/include/linux/scatterlist.h
>> @@ -65,16 +65,18 @@ struct sg_table {
>> */
>>
>> #define SG_MAGIC 0x87654321
>> +#define SG_CHAIN 0x01
>> +#define SG_EMARK 0x02
>
> SG_EMARK sounds strange, what about SG_END?
+1 on SG_END.
Btw, just a cleanup for readability or you have further work in this area?
Regards,
Tvrtko
Powered by blists - more mailing lists