Received: by 10.192.165.156 with SMTP id m28csp2091129imm; Thu, 12 Apr 2018 08:28:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx48PqKep3b1baOjZ/5zH+Eb370J9pIrH0VT3ndJhAaCGkCUWGLMMxX/XX/eWKnuiL2S1d0Fx X-Received: by 10.99.94.197 with SMTP id s188mr1047472pgb.21.1523546886925; Thu, 12 Apr 2018 08:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523546886; cv=none; d=google.com; s=arc-20160816; b=diw3WlPBT/lo8iInj4zOjGczmj+YXlKZ3rVhqigeNi84lCSLVFuErUYrWMuzA4iyJT wWvdKnS2a8MijGUF3e6afYtTYAvHh1tOpp3JWtOnSUzhiXfOcpv+MNaxoNRw/6bPoAXG MVNsYEm6i4ayI/YIg3H5+8HkFxkYqweoIe35ktF31VA3UfK16A+me1C5AOLfNIM8XR7+ Nyp95BYtdqLwYLgq4GLkyjpgDJ7NkJktZomEHbr37Fg4Oj64TkiZHo+q48lU6Tq4cM4i qX6lfxYseCPrJfOpjZrLByhGHpDYbZq8CMeMYphNd5F6kPGDfG9X5EfrmHqdYsDQPL51 sOmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=pAO4MPSGmrjEEGe9Mq1NAiu8OuSuM30SvLNUx27T8BU=; b=OpOyneJJDXBSrwLfSTdV4cknv5zVq0YCxHxrWBXF2JIpjYmptom+AqzqVy9/ZqTf0j gKCtTDw+hD23emc1u82/HXQyl8IDU9v6DCwM8VLXpyWDMYjg0+/ltu/7Yxj9QQyA5661 /QtrthvC8JCNRhyPS7VnVmfuS+OWPVqBmhZ4pSgV1RqSe1N0p1jB7eSh6A06ADF49ORu +myb19vkPHoDN8ppK2DgZrFtDguVobs5YnO9fxOsdTcAE8+0ky2sRf/JK27+N5lUvXiy V6uEuGrnBMBxbrF8qLIn+UCJAfJdhRJeGt8RK8pme2RsoDI4s6QQ2ZJnkMUCvCMWa9+g hZkQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si3546168ply.517.2018.04.12.08.27.30; Thu, 12 Apr 2018 08:28:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754005AbeDLPUF (ORCPT + 99 others); Thu, 12 Apr 2018 11:20:05 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36876 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753424AbeDLPIx (ORCPT ); Thu, 12 Apr 2018 11:08:53 -0400 Received: by mail-wm0-f65.google.com with SMTP id l16so6487315wmh.2 for ; Thu, 12 Apr 2018 08:08:53 -0700 (PDT) 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; bh=pAO4MPSGmrjEEGe9Mq1NAiu8OuSuM30SvLNUx27T8BU=; b=UyN6DpgdwC+HRR4vsUz5S3y6FBHQf89g0d5Kh9/9kGriznsPK2eG2BamuZ2Apd/hyn X/PnGqUHBhdLfVAaMw1fpqKaqWwaODCgmiTaIZ/dE/Y9X/jyzHOYmBGZRz04wzaxOl1j 9pgQuQBlUud6ukp/tCcNURNicCW9ni0azqu5Ftmz9heSObtnEf2iAlSqDnKVNsqSmWYY d4Kr459YUN2PYJAkFU8Cq/wBufIWKix2mEv77yxuxj9TDaqTQaHbgoXbHx083Rq+yzu8 6qmKS3WgcbEFglgIsixbTNhF7n/WtfTGjacM7bqcF71ALKU+/bC8xtRoyDwaI/BzdB3c 69oQ== X-Gm-Message-State: ALQs6tDgTD8qDB1fw3v2jJ66crRYOlPXcztBLG1aC/X3Di9+2MX94qPG +OkDOUmoxguWIGxXhac3nNj30w== X-Received: by 10.28.54.220 with SMTP id y89mr1017448wmh.108.1523545732510; Thu, 12 Apr 2018 08:08:52 -0700 (PDT) Received: from veci.piliscsaba.redhat.com (catv-176-63-54-97.catv.broadband.hu. [176.63.54.97]) by smtp.gmail.com with ESMTPSA id p197sm2621783wme.43.2018.04.12.08.08.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 08:08:52 -0700 (PDT) From: Miklos Szeredi To: linux-unionfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 18/35] ovl: readd O_DIRECT support Date: Thu, 12 Apr 2018 17:08:09 +0200 Message-Id: <20180412150826.20988-19-mszeredi@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180412150826.20988-1-mszeredi@redhat.com> References: <20180412150826.20988-1-mszeredi@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Miklos Szeredi --- fs/overlayfs/file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c index cc004ff1b05b..9670e160967e 100644 --- a/fs/overlayfs/file.c +++ b/fs/overlayfs/file.c @@ -110,6 +110,9 @@ static int ovl_open(struct inode *inode, struct file *file) if (IS_ERR(realfile)) return PTR_ERR(realfile); + /* For O_DIRECT dentry_open() checks f_mapping->a_ops->direct_IO */ + file->f_mapping = realfile->f_mapping; + file->private_data = realfile; return 0; -- 2.14.3