Received: by 10.223.185.116 with SMTP id b49csp405158wrg; Wed, 14 Feb 2018 00:33:52 -0800 (PST) X-Google-Smtp-Source: AH8x225/8/2l8KdX3B2TzRE4OMiaCs55x+nQWx09Hd48Jlu+pCgbTVGW82khIbCUvW7hYY+OWB+M X-Received: by 2002:a17:902:2cc3:: with SMTP id n61-v6mr3726905plb.440.1518597232730; Wed, 14 Feb 2018 00:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518597232; cv=none; d=google.com; s=arc-20160816; b=mXghlrCaRgJV/UQcje5g7s0yR43YTaOOeElAlaNiCt9PH7nXAzTBWU2brkb/jFgvod PXv6QA4vo/le7Iq+MFoPzv3Fn3snL6lntB907DRhfM7ri2Xalp9vohle8W+0gpCUH+qw XoLMP0tWzu7ibtjUNhVm/DSqalAk+XlbKFq6TVD5iZOuYbBELwRaZ5UkOvt1tLntBNQx iJxlT0Pkzpf2DO3MoCptRJDKuJ7KEdAFQnxNcP9VA3+2Psd6qrr1YnNUP22AbL4+vo9W QSbiI7gLdI1q8UtMz0sLUyEHM4DAMKY2jVxRUoQTSU3zh96sDxicc+9HIPbmqBSkuHVl vVQw== 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:mime-version :references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=leEcykurPKH4vZrF3uIO3XlLnqRCnASPuU8dKA0xvdk=; b=d1rgSgc0MT7w9uGOX4RxlIKz9hudNUPA0GsteP2XUhw2Ee36EHE7K/X/kAkzpvVNvi A+NhXbA1ss0pVWPpwYUhS6l+KttyPXsVHHtWi4SDrGW/lFkBGNPTVOhG4Z1pauk7jGE0 F6/+3+819EvddD2CKW6xAPSPQr+Mtj48nyCihq0XUBeusj7plP8/iptMPNLrNcWxEJ3J cKNcZy2v5sHnr2ZbOQyHYe5FGaAkBkfMS7QgitGjX5c2PDIc3pkU9UDOHubWVgIrQpJ8 zzLTIu3cv5C85V2JNuJmycGnKaIaVpamC1EpuyctkUP6KCp6hC8S2svOfHIaeSd1q32d lKkA== ARC-Authentication-Results: i=1; mx.google.com; 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 e1-v6si2270126pln.825.2018.02.14.00.33.38; Wed, 14 Feb 2018 00:33:52 -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; 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 S1754685AbeBNIcw (ORCPT + 99 others); Wed, 14 Feb 2018 03:32:52 -0500 Received: from mx2.suse.de ([195.135.220.15]:47877 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754492AbeBNIcv (ORCPT ); Wed, 14 Feb 2018 03:32:51 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CB27DAC87; Wed, 14 Feb 2018 08:32:49 +0000 (UTC) Message-ID: <1518597168.24629.4.camel@suse.de> Subject: Re: [PATCH] lib/scatterlist: Add SG_CHAIN and SG_EMARK macros for LSB encodings From: Johannes Thumshirn To: 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 Date: Wed, 14 Feb 2018 09:32:48 +0100 In-Reply-To: <20180214045804.9113-1-khandual@linux.vnet.ibm.com> References: <20180214045804.9113-1-khandual@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Johannes Thumshirn                                          Storage jthu mshirn@suse.de                                +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850