Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp275274ybm; Tue, 26 May 2020 16:43:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynwKoH2wk7cO6vDxJZcBB49ZdIEGzSQ+NTjnkK9cNlDyM8sqeDQ1n9FNsFjbXp1Jhrn5h+ X-Received: by 2002:a17:906:9157:: with SMTP id y23mr3439186ejw.0.1590536593796; Tue, 26 May 2020 16:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590536593; cv=none; d=google.com; s=arc-20160816; b=gVNMzIPGSswnkxi27DWd1fBITcLLzKSyVJCsC4BqOtkcD9tiTPjy5omduZ1l0M4ilk eMQqosz9QKcJJ80aPXCBlCAo9qvy1F95SPqU8PKdy3nK/wujlTFXB28qc4OLBVGD0F1r Y5S9XpdSalo8JN6yXtyLgt1dxMOjk9wkBKstf9gw6F6dyS6NRkCVBw7gVZm285QkQSDG Wy8Ef1Wv5g7aWabnLZgDrankKJ9LKxF6vsgzIJyCPC7Dg7O+UYbFMSdUy5FmPSzbgDzu NrXYwGVqGBYFNLIthmrzW2w83tdXV8Z1koGl3t8Dju3ViYMxzrR8+VNMWiLey3550SE9 lmzA== 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=mDbeWlveWyEr17EututM6ewZlLrenoq+wrG4TB+c+O8=; b=00qpaHcSoiUZGvE6kkW02T4V2Wcjc0JIvFHdRE7uPXtppsKF7BEGFkz+g3LifCyan7 c814bD5LlUMYrW7FUCx1ZSbIr7NRko5+mDjp7+vPFhGMdZuOahH1HkkCnzNeBhozBGmw VU4U7eXDg5mvHTGRF6DQ+lmawU+Ffjv1jTXL45y1/Em3l5zAI7QSGNwj5VSBqUT6h1SW vesb1j6Y5BrQoyO2B+zpuLQWxCeZ/3L14VOKkKFs5+J62jBaP2R3CJfcF9he2YkdslZw bTZebYoZVQcCtrbo7EliUkTXk+Fok5wzZ8UdjyofX42xa+VB7JM/AnkANrdGUlMvNTlr 97XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=UT8tDTtj; 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 se23si742381ejb.247.2020.05.26.16.42.51; Tue, 26 May 2020 16:43:13 -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=UT8tDTtj; 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 S2389809AbgEZTvx (ORCPT + 99 others); Tue, 26 May 2020 15:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389834AbgEZTvm (ORCPT ); Tue, 26 May 2020 15:51:42 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E14E3C03E96D for ; Tue, 26 May 2020 12:51:40 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id n15so259029pjt.4 for ; Tue, 26 May 2020 12:51:40 -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=mDbeWlveWyEr17EututM6ewZlLrenoq+wrG4TB+c+O8=; b=UT8tDTtjIxNNLckeUW39C1DftMV8tadKSzZHS24JY/ZgL6QUhytEvq2lkIf1qolpKk U19xBYg0KGV33rpnvi79D2PmiTq7vV4GnQy/vbDB5t3xuGIzSzGqlvQmaVY0B+9G+GIX llYo8cOvcrKG7jjvG4eBsx1q+LF9dT2crnAC1DmoY/wdrKeOH+NZ2+jAdxVlTNFeGy4a bQz1a2+aBWm5/WLAaDmlh/4XzvXPR5G3jeezjLE44Z3L1BaD260oHfxmj3fx6/puUmDQ a+gZr/lzYlcH0GBmCG9QZp0U8aQKyRwejv/NOtaCLlRLWl4GrEw481VCXscus2avzuQ2 95Ew== 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=mDbeWlveWyEr17EututM6ewZlLrenoq+wrG4TB+c+O8=; b=J3fRIF63QhX4r8ok79AlLIuBZ/Jz44S5uLe4g5EabV8WbrqLb3Q+B0FhGX6w3MNzCB EqxSYOBUAx7StjlTLafJvNWvjiglWvdLdj5xrohFDHRoSelktxYfcaF73lkG+Tcv3pCf W+TuN7nqKMReKsKeGU+ipR2iKp0Ob3ucNMVy7kNklYDUzOuAsYZob9122RW5z3QyPSGP WgUvnSkLaLfzh7lcXmAbUYLcR+9CU9R0YD7D99A5jCTYTxTl1cf/t+FwSuVPNGLBS9In cv+CvTLUruKVBiyBeWUEZG2EbcTibZbDATdOAr1O9nS35oi9DWM02beBb3XIGbhmwgi8 ajfA== X-Gm-Message-State: AOAM533KAX+si7BpwQryzbYNf254Y9kraoPJs9sdwFH56FDa8AYXALWK CTpoz7V7m/ELd+MaehvCstqC/vIqpA5Iqg== X-Received: by 2002:a17:90a:a78f:: with SMTP id f15mr930733pjq.226.1590522700418; Tue, 26 May 2020 12:51:40 -0700 (PDT) Received: from x1.lan ([2605:e000:100e:8c61:94bb:59d2:caf6:70e1]) by smtp.gmail.com with ESMTPSA id c184sm313943pfc.57.2020.05.26.12.51.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 12:51:39 -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, akpm@linux-foundation.org, Jens Axboe Subject: [PATCH 10/12] btrfs: flag files as supporting buffered async reads Date: Tue, 26 May 2020 13:51:21 -0600 Message-Id: <20200526195123.29053-11-axboe@kernel.dk> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526195123.29053-1-axboe@kernel.dk> References: <20200526195123.29053-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 btrfs uses generic_file_read_iter(), which already supports this. Signed-off-by: Jens Axboe --- fs/btrfs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 719e68ab552c..c933b6a1b4a8 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -3480,7 +3480,7 @@ static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) static int btrfs_file_open(struct inode *inode, struct file *filp) { - filp->f_mode |= FMODE_NOWAIT; + filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC; return generic_file_open(inode, filp); } -- 2.26.2