Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4625446ybh; Tue, 6 Aug 2019 15:07:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDJ0o9cy8YD7Tit8+XXLIuMXfTR307icwI4jmzn9bAziuy2AXSKEMpIaoapToIPrNB8ZqS X-Received: by 2002:a63:2685:: with SMTP id m127mr4914906pgm.6.1565129243231; Tue, 06 Aug 2019 15:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565129243; cv=none; d=google.com; s=arc-20160816; b=yZxKl3L0CxzUxuQbxC+62GQmJUMkjkJwxAic5GNX/p0Xh3bnCZFSMVYai8FW7OVh1i sdNjZy1BLQliSjTSJ8hJ7C0u6F4zojiCCjiU+Oy7XJY8xBCFM9bkfPEFaJo1nmqNgrzq XY+jakDhdlQDkKDZF03r/4FHkQEFULleI48RZnD0EMZ4kZu4x/0r/wyDG5easHZvGDA/ T+0fxfEdDINKvpt+cK7QL/+iX/vN8jeXDvOZ/pz2Du+wnUaeJE65ntkE2/5KIxo4efoh TPP8TiOZ57jyL1iPR1CecV6tJtD0fiFfduzU0qJNnfK2SGnXBvvcV64dR1yEawLHwMzI 0VwQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=D7kIZFgGybpcf1I/lUbPOT+bnIDjPdUpNNf2NGVocZo=; b=qhRUinkTm/IIfcUhU+xdr9DdqSnQVw9+iexqqzwXeHzMIIDvG/uJFC4OFP6ZxOa1Cv 7VvMDmQa8pEAZxveUmmhIugHa7xQndAbhhwU1mmolUsVj6cH58eRIlbwy7EmbhJa3Nad Ypao5DfaL1DmiEBHgfjr/kcZE7ZhlenNgrFJAsn7xbP3RAbT3uzOX0ANjyWFIp814EXd YjrKa7i3McU9yBhVi6EZFzdFzZ5WP4HgOF6Y1N5APqEdTh39CsQVOPEzU5kFL5eA1gn0 dJ4MucoNEaSK+vobBfrq8ip2jPLvtDs++vp63L6wwcHwIDxEFcugAtk0uLLte8QH7Cp1 iEOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=F0Ff2uTw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si48383103pge.301.2019.08.06.15.07.07; Tue, 06 Aug 2019 15:07:23 -0700 (PDT) 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=@android.com header.s=20161025 header.b=F0Ff2uTw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727263AbfHFWFv (ORCPT + 99 others); Tue, 6 Aug 2019 18:05:51 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52948 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfHFWFu (ORCPT ); Tue, 6 Aug 2019 18:05:50 -0400 Received: by mail-wm1-f67.google.com with SMTP id s3so79690279wms.2 for ; Tue, 06 Aug 2019 15:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D7kIZFgGybpcf1I/lUbPOT+bnIDjPdUpNNf2NGVocZo=; b=F0Ff2uTwa31Ysn929Q7uzlxnogUkI+Bcnwayo/cc/LIGOsaIOOlAz7+Wdb7VJkG6Md 9m5KPfc04xft/5DxMlp/Ck+BPif+B/vzc/PpDntW/kB5iYyHDMSkLYofitvUt9JX+ASo 45JHolnWmY1CaGLCIk18wK3TkpAMpJv1xEGa0J7kSIq/BlA+tgfTiO2JXgMhFxcdfgIM /9cb0eaGWIuWgZVevaHBsHlEZIqDuhZJV/yZUJsam/AQ94bLbMw88PvDE1x7WbInouGq Hwnc/tfdixHMePg7Gk2rrzIHmRL1cWFt2r23/1XCmzM6xLht4/rC1WBdQVJNuS9NSbSr 4c3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D7kIZFgGybpcf1I/lUbPOT+bnIDjPdUpNNf2NGVocZo=; b=DqkfkTR4GlGt5pk4CUHtBc/OLABQaodV3Wg9Wi1Fdz50fCJ+xtsPI2VsF/8F/990lX wWGs+T8KVvVRzDL7Wvdmj9ZdAnutMKxknI5LnT4mCy7vyfuWTcfMMObb2iCOhzGxsUQ8 M72Jl4tgmuURYrpN1YxOh/mBGrVdEMFe3z97iieSHgOh/Ki9q3KoW5I1jYZijzFAsytF QwV30fU1YjyrYjAWKvj5LMycFHJuytusfSJ9DLR1q3zi7VTQ9laMbzC/knR7OOyXjcmA N6kw2D2hvHP0QjN36zk7JmKuDH7gN0DI4ZltwXN/8qnWzEdgu5191qP/sqfs347WJLo+ bIFA== X-Gm-Message-State: APjAAAXr9XhQqgKAbHC/TBUEnSwLkQK+ev0T3RvDV8h+gL8bzYSZBEUs a+jiYeeWF1lZcywlFlekiyotoQ== X-Received: by 2002:a1c:751a:: with SMTP id o26mr6375286wmc.13.1565129149305; Tue, 06 Aug 2019 15:05:49 -0700 (PDT) Received: from balsini.lon.corp.google.com ([2a00:79e0:d:210:e751:37a0:1e95:e65d]) by smtp.gmail.com with ESMTPSA id s3sm93652190wmh.27.2019.08.06.15.05.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 15:05:48 -0700 (PDT) From: Alessio Balsini To: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, axboe@kernel.dk, dvander@gmail.com, elsk@google.com, gregkh@linuxfoundation.org, kernel-team@android.com Subject: [PATCH] loop: Add LOOP_SET_DIRECT_IO in compat ioctl Date: Tue, 6 Aug 2019 23:05:24 +0100 Message-Id: <20190806220524.251404-1-balsini@android.com> X-Mailer: git-send-email 2.22.0.770.g0f2c4a37fd-goog 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 Export LOOP_SET_DIRECT_IO as additional lo_compat_ioctl. The input argument for this ioctl is a single long, in the end converted to a 1-bit boolean. Compatibility is then preserved. Cc: Jens Axboe Signed-off-by: Alessio Balsini --- drivers/block/loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 3036883fc9f8..a7461f482467 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1755,6 +1755,7 @@ static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode, case LOOP_SET_FD: case LOOP_CHANGE_FD: case LOOP_SET_BLOCK_SIZE: + case LOOP_SET_DIRECT_IO: err = lo_ioctl(bdev, mode, cmd, arg); break; default: -- 2.22.0.770.g0f2c4a37fd-goog