Received: by 2002:a25:d80d:0:0:0:0:0 with SMTP id p13csp217703ybg; Sat, 23 May 2020 12:01:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEjRkqWLbjpJqQ8En71nYfqOBNfOyzId7hJ99lh1t8ClIROphqXW9r+9hwxH/b3CjBBKCq X-Received: by 2002:a17:906:ad4:: with SMTP id z20mr12583540ejf.82.1590260462830; Sat, 23 May 2020 12:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590260462; cv=none; d=google.com; s=arc-20160816; b=N0aQcv7EJ8S35MeIZZhJKnwAIMkkwI2Sjx+Tbd2lkhs24piwZTBjgZxz+U9gnQpG1a 5yQf8c2ZK4eB/rh1isD8y0tJOfcXjhVIZvCeZlDFOGn84iemvcjU855G4SPAu1Yz4GUK rXc1JLbtMPuiEDtCnvUMKzLwTO2sjKgr3cxvcRYC+pS7U3Ei/UOF5dEpe+0ymfWUCKws hHmyrGt5blTleaZWdsZsMWdZTs1xlA1zPAsjkG9mm+dmzy4tC8rPCx74LFRsOsBZY0WF 8cKU8F4kWYwIXPZjDmGITYHlLBBr2wBW9d1ksvNZKhuHCz0MW/DQ3enudhQ36GZEUDBL qT3Q== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=+VWs0Nj9WGghWnCOq/fSx5SIRlxQxiE9MXDVdkqYQzM=; b=EHjDduNEhgaW8dbr1JdRxTigHdt+rhNP0ZM56JGzTkA4CzRXDEdAa8rJN2Lzbmj8qs ekION5oJ8d5evYenFV9Ga9Dv0/uIBzNM593SZJWkZEtsBHrJS06FXySwoqNcDwjbCxt4 eTQpMFLOgovTB/jBfqubyqdX4lfT9Vct0RvIlMHOSMhUYnKPGPpw06OYCOK4WvdmVU1B KOgaydKCML4OMXcU9++H+76LZul8+bZTvk5zNu4dhMSlyMqqf/8VA3Po7xgHhmi0loaF P4PfYmrnQ5Qb0GoaGON+TEmHiUzNBzuQpgwme28lpElVkkQMyzUmmGbCbrW7zoIKg/8x +IXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=VQGxFJ1M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj27si3235171ejb.107.2020.05.23.12.00.40; Sat, 23 May 2020 12:01:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=VQGxFJ1M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388041AbgEWS6l (ORCPT + 99 others); Sat, 23 May 2020 14:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728722AbgEWS6H (ORCPT ); Sat, 23 May 2020 14:58:07 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EA47C08C5C1 for ; Sat, 23 May 2020 11:58:07 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id u22so5737495plq.12 for ; Sat, 23 May 2020 11:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+VWs0Nj9WGghWnCOq/fSx5SIRlxQxiE9MXDVdkqYQzM=; b=VQGxFJ1MxYS+Vw8KoeGE9Yp64TT9Leh+gvBEq3nSUIcV4q11TwCvNdgUOE64d9oXuR QwCYzp1XbRjhrfrIYCgDRiI3wNxKaPuOK9MAPnMWA0KnXYiuSAIVl2yI09EhrIdrcrFM yXlJUMX6/7/dnLIlxxx71WhbHGAAvf+qPT2dYyKUTUDXmSXge8//q718AUli9iaFfbEC dxVqtShxZExPi16L5fD/q3PnmzPb30ALVsAN2nzVeCsEO4ixAEqCTbiC/L3aSva3OchT 7fmGcoI1vJS88d1J9R3bXQ/OGQQpUX13sIuMZdX3/8Sy5tpafxaH30aJAQrsfvYlh05M iYyA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=+VWs0Nj9WGghWnCOq/fSx5SIRlxQxiE9MXDVdkqYQzM=; b=Nz+dg5G7XDd8ydm+INm25ox4ozT48wphDfbM6SKb0/9b8TTFjED5FMXwTIxyMryXSP Uc1P5hbqPz+R6RbHBd9U3zf8UtaONc+fY/gbnfS4Qh6dHVWGqmAEOx1u1HgG8pOEz11i yUkDOq+CCaipZBgy0OlOIlSf0sTgA+FFcXt+wy62Ko6o8185v8UnQy/taTeCd0FiRXu/ gaMkYGgxJ2wwsbnYMlqRctN2DB9qAsYkanvjGZlLgKqD0JCiyN054r/ijtF0KrU7JDUC iMR279yjuKD5+Ni5AUW9lNXrwGxSMUdCxIAZ9V77zqWPcRfuD2sl//M0cGT2SOh85OpP Y97g== X-Gm-Message-State: AOAM531SdZR1DoUUpvvpvWnOkTU0EonKEU52NDMPF3B8y33e3uOCC1DQ lQQ5/99vrKL0d7LQCKMr+7qS4Q== X-Received: by 2002:a17:902:7:: with SMTP id 7mr21153561pla.45.1590260287140; Sat, 23 May 2020 11:58:07 -0700 (PDT) Received: from x1.lan ([2605:e000:100e:8c61:c94:a67a:9209:cf5f]) by smtp.gmail.com with ESMTPSA id 25sm9297319pjk.50.2020.05.23.11.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 11:58:06 -0700 (PDT) From: Jens Axboe To: io-uring@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jens Axboe Subject: [PATCH 06/12] fs: add FMODE_BUF_RASYNC Date: Sat, 23 May 2020 12:57:49 -0600 Message-Id: <20200523185755.8494-7-axboe@kernel.dk> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200523185755.8494-1-axboe@kernel.dk> References: <20200523185755.8494-1-axboe@kernel.dk> 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 If set, this indicates that the file system supports IOCB_WAITQ for buffered reads. Signed-off-by: Jens Axboe --- include/linux/fs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 82b989695ab9..0ef5f5973b1c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -175,6 +175,9 @@ typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, /* File does not contribute to nr_files count */ #define FMODE_NOACCOUNT ((__force fmode_t)0x20000000) +/* File supports async buffered reads */ +#define FMODE_BUF_RASYNC ((__force fmode_t)0x40000000) + /* * Flag for rw_copy_check_uvector and compat_rw_copy_check_uvector * that indicates that they should check the contents of the iovec are -- 2.26.2