Received: by 10.223.185.116 with SMTP id b49csp1127510wrg; Wed, 14 Feb 2018 12:03:50 -0800 (PST) X-Google-Smtp-Source: AH8x226pW+doGqzNg1WzDzZQiJyZJfIp/Pw5mMW5zRQXwfh1jZ7M6SSKxDahGvqCnWisXY1M8cY9 X-Received: by 10.99.107.198 with SMTP id g189mr160987pgc.142.1518638630541; Wed, 14 Feb 2018 12:03:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518638630; cv=none; d=google.com; s=arc-20160816; b=p6ZSW1cn4T2wD2VD4bVK982Bojwu0z41vc/7eb/S9RQvTgxDS2Ee+4IfVzYLLjxUbN jVrljAI/3cXujh1EPI44uDxlwiRVzxdUPRN3ju3QQuhbFRQeh1L4/+primiAGyJllLIR 5DbcqxQOCYLVBzcZqpygzk3qyX718OfHFegElnGv/1PH7E1k2JJ99qWlXWaT22wtdDh5 Lt9XsAUdChH9qsOrbj+8U52bs3r84VoKE0+cmsNeUW/572bbh9Mkp6vfLr6WxzXnI2f1 j419/9uMUBczMoGLQjPNiHiLq4pEr06ro8EEzVu3xO3Wr2rKQpE/5d17afE8tM4gsHbL TCMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=ppx6oKYKN0dR5JoKeYoq0pJbba0wADN8HcShhREXBgM=; b=HqFcU0DEp2c76lxZM0muucXWbZynJght/+bRuAvoZAZOvroo1jAihYCl7Fjk/qm517 6+hlNpd/oN50iDAMFB8Tp3C4H1ltW60icW3jWi+evk9VggjuuUv3O7GdcSlA34hMHvdn 6a4cRhbX+Kaj852xdpGRS3M+m4wnLQZlmN6J59TkPiRScEF2bIm7MG3aK6MYH1mYdrJc L0JQrwFyIa1f9YeJftMLan8GwmnyJaaeYgCNXn3kTlCHzHD4l0Xw/iT3Rr2kVtmHiFSj PdarKISzCvm4iBTI7RtzxbrWiVTWsgX6l9XFV5IIbtRyB4n3xzASIx8EwlYcEUDcSTqF xlcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=2TXgyjBP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b31-v6si9408150plb.24.2018.02.14.12.03.25; Wed, 14 Feb 2018 12:03:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=2TXgyjBP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032104AbeBNQL3 (ORCPT + 99 others); Wed, 14 Feb 2018 11:11:29 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38349 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030349AbeBNQL1 (ORCPT ); Wed, 14 Feb 2018 11:11:27 -0500 Received: by mail-wm0-f67.google.com with SMTP id 141so22817424wme.3 for ; Wed, 14 Feb 2018 08:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ppx6oKYKN0dR5JoKeYoq0pJbba0wADN8HcShhREXBgM=; b=2TXgyjBP8PN7k78zFfWGr2pLSmDSEEDsEQB2urP+DStulQLTIaye4wePG+y+Z9C92K EODCYppnDtfltbGG9M0DpM4JUjDMNKAcjS5mCohsiKgHnBxq43C6h8UDOPdibBUuLTlG LaK+lQgIYzEKM8LLltPqpYIF9u0rXSanMKgU0p/WFpCcb2nSY7zXhuvEDNwP6Pvxc35h yF9nzqthlM5F3ssUq7aISq8m4XMxKLEyitdtd6WYL9CXEGGmvLMwkrx/H/ieaIMD1S3T KFewZYt8wr302madXR1mfnEhaUetza2nvwcIADlWLoj/dTMnUwUTKhxhDch9UHkfZz4w MK2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ppx6oKYKN0dR5JoKeYoq0pJbba0wADN8HcShhREXBgM=; b=dWxvKKy/uit+Xv6Ao7EcZbalosm8XiH+jpnEJKCBszOBu2SjUUB2G+j5HloUR1DIA7 jzbfDnRiIbJYTakrqEdRWDkcIV4HJBQKePhY6BmK0k88O2X4CaPAAyrwZVY7FaDCCeEX m2/bXwA+Q1CzHPzGOPOZ9dbJ0xDXEkFV2FnREzUgOqkxkfbbkNgUYbj5tE9xxVhZ/tnP z9JU4pCFTwTUFN5S71XtS7OSPC/tUZ3N4kk2Wz/ZoH5eEzSHrageIlpf3xHcvIQNES7J hSetIxNg4q0HKI7GlkG7ejvwFZ1OCv1EaT+oby/E2mcga3Hy+hzqJqXgBIie6dTEEiK0 5sYA== X-Gm-Message-State: APf1xPDjRpK3QXAuXLzb6Lxrn5Dpz0vS9FoIZxXtFGQUR0tbXVInOHws GD3MrfcvI0DSNlyUpTyMWCBzzg== X-Received: by 10.80.166.212 with SMTP id f20mr7447168edc.266.1518624686830; Wed, 14 Feb 2018 08:11:26 -0800 (PST) Received: from [192.168.0.153] ([95.146.144.186]) by smtp.googlemail.com with ESMTPSA id h2sm7536783edc.13.2018.02.14.08.11.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 08:11:26 -0800 (PST) Subject: Re: [PATCH] lib/scatterlist: Add SG_CHAIN and SG_EMARK macros for LSB encodings To: Johannes Thumshirn , Anshuman Khandual , linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, bart.vanassche@wdc.com, axboe@kernel.dk, chris@chris-wilson.co.uk, tvrtko.ursulin@intel.com References: <20180214045804.9113-1-khandual@linux.vnet.ibm.com> <1518597168.24629.4.camel@suse.de> From: Tvrtko Ursulin Message-ID: Date: Wed, 14 Feb 2018 16:11:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1518597168.24629.4.camel@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >> --- >>  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