Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2185271imu; Sun, 16 Dec 2018 19:16:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/WrQkJS0b9ROeVmN87FgxRS6ZUMIZBbP2k7TafJ2v8A0yBIZSfMeuVvstbXv/kr61Gt2SYa X-Received: by 2002:a63:cd11:: with SMTP id i17mr10854618pgg.345.1545016619251; Sun, 16 Dec 2018 19:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545016619; cv=none; d=google.com; s=arc-20160816; b=Z6B2FeyvL1Jl5YlIB7I4w9VOnQC9xAOopCOZ+6cdTVK1I5+ITY1vywa1eFcl5PJFqz vrs75q2EKUXuUAoea+Qliu33hcRlSddjGtZNvu/xeiq9eEFbQyM9u1IMmxhmLGgKkN4v cnGjSXwWV7HxMjOXiXjx/VXgJMXr7Wrcypca7AxBW7VS+/RoHj5rG809WDZPOlazo358 aFE6cnqmSg7r1TDecJuou+qAHQokEHR5wjUR4cayhi0Gy8P3Iw+zKBOTR+9NkEFX54Pm 8Yem8y7ws6KRJ+zh7iDZLfdripZ3N1W9MA/Oqq/ELUu5L+2o9/nBZxnTToNxdJh8AKfr nEGA== 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:cc:to:subject:dkim-signature; bh=E6euP97Vr7PfZyF2PW1bMgZx+fE8UM8bET3HFhm732k=; b=tnEmoyHWgk19xDFfO5bGCsG2hgXQgmnSNs4ko2pqbDGXTwleEPc+rIjX2HgJs3itOt j1ZNwbhmT7y7eUMLGpeYD0k5B46fijALOiPU2TnptorzBB1/pNTm0Wlge3lIGAMmHAup S5wVxsVbsSImhoj1UnGFqkiS3aAianWvLLPX5ma1gZCTsdIFb2tMM9mSld2LSGK7dNpj ij64tCpXUByTJqYOhx52W/7ubu478yigvAcQwWnQ7hR7QvOj7BTF8FEDcKExd2CL7cJJ hf5RXlzWsUd+aMWOdPD95JQt0Szl/0POSJpRXUpjE0vY7krAcipYrn4UTZ3Cj+HiirLm umXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=m3mII2SE; 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 e7si8576654pfh.147.2018.12.16.19.16.43; Sun, 16 Dec 2018 19:16:59 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=m3mII2SE; 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 S1731194AbeLQCwV (ORCPT + 99 others); Sun, 16 Dec 2018 21:52:21 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35658 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbeLQCwV (ORCPT ); Sun, 16 Dec 2018 21:52:21 -0500 Received: by mail-pg1-f193.google.com with SMTP id s198so5378725pgs.2 for ; Sun, 16 Dec 2018 18:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=E6euP97Vr7PfZyF2PW1bMgZx+fE8UM8bET3HFhm732k=; b=m3mII2SErPAu7on3J3oG1vnOcmi/OxFKxcf/WIQLROBglywEJILuEb7hwbS6m2TnL4 Stbnog3UIx3pfTf9gNbreR1tJPgzWvMJzNI3UQk9KpD52b39potrVHjLJLxJI1EposkG yV1UJhGZ/npOH5K38tllmJJ9gsTyDr6Hh9qpIXcTCnGf9esj9PIuSP4+sxd8vZFafAc+ 8CeofCZwcCIyYc8FGZOgIXByWIdxCw0i8GyhmYX3OxCOBlxPUDSVWgJUQ8AG3d3fAOGC 1S84ThE3mxQDXuwU27WwhsHG+NxuZm7MiN388OmExiyaHnxW3Nw37A9lLeOstQINBMk0 5q4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=E6euP97Vr7PfZyF2PW1bMgZx+fE8UM8bET3HFhm732k=; b=bzRYm8ra/cK8ZC12FLxY2PQTS4s39Vpf71WmdyLcGUQL5dZj50BJhUbkQuOnBlOFmD DDenPV3kegoXj0KpTJHxFi6ql6q6dP0yVumthWzVQ+wHjcYz8zqoVVIg3BH2U+AuTpBS dqGoUlvcUH5IUkr6rj+R/pAhvEteDDTJHxRWefR+MSsyg2sCCHcbv60Xl4Cv6c5rZIDu 6ZtSI2IToUfBLAYSXWRGDDHmvDV1XspmmfBSp81eYs8UFRZUar7wEuJDqfRl0sryGDjj DIqCZNz+XnssFbvcKw8txPnXjkW0DjYgyxoQP3LuxjbGv2+euMFCnvUq7MV5R6EQujap ifhQ== X-Gm-Message-State: AA+aEWa2puLJ3jb9OLR7/vzCAFHdB2rySZHsyW7ewA0Io7Ystr0yqkTg psGAOSDWkjRaAEfcrFwumBSBRRQjzHinYQ== X-Received: by 2002:a65:610d:: with SMTP id z13mr10784378pgu.427.1545015140139; Sun, 16 Dec 2018 18:52:20 -0800 (PST) Received: from [192.168.1.121] (66.29.188.166.static.utbb.net. [66.29.188.166]) by smtp.gmail.com with ESMTPSA id v62sm19591002pfd.163.2018.12.16.18.52.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Dec 2018 18:52:19 -0800 (PST) Subject: Re: [PATCH] uapi: linux/blkzoned.h: fix BLKGETZONESZ and BLKGETNRZONES definitions To: "Dmitry V. Levin" , Damien Le Moal Cc: linux-kernel@vger.kernel.org References: <20181216014951.GA14229@altlinux.org> From: Jens Axboe Message-ID: <5c1ce6a8-9ef0-9031-2ecf-5083e4976ccb@kernel.dk> Date: Sun, 16 Dec 2018 19:52:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181216014951.GA14229@altlinux.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/15/18 6:49 PM, Dmitry V. Levin wrote: > According to the documentation in include/uapi/asm-generic/ioctl.h, > _IOW means userspace is writing and kernel is reading, and > _IOR means userspace is reading and kernel is writing. > > In case of these two ioctls, kernel is writing and userspace is reading, > so they have to be _IOR instead of _IOW. Applied, thanks. -- Jens Axboe