From patchwork Sun Jan 31 13:22:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 8174421 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E282EBEEE5 for ; Sun, 31 Jan 2016 13:22:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 313B120320 for ; Sun, 31 Jan 2016 13:22:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6543E202FE for ; Sun, 31 Jan 2016 13:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932166AbcAaNWY (ORCPT ); Sun, 31 Jan 2016 08:22:24 -0500 Received: from mail-lb0-f176.google.com ([209.85.217.176]:33489 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757361AbcAaNWW (ORCPT ); Sun, 31 Jan 2016 08:22:22 -0500 Received: by mail-lb0-f176.google.com with SMTP id x4so62530811lbm.0; Sun, 31 Jan 2016 05:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=t+9LgUZ8Z7YLalhopow0HKn2KFgwWUBuXqKjp7+v0hQ=; b=Y/Tuh0Ifa702CURWLJUgT0zVV4CeQ9kwtPRQDyy1ri6lwyBmeFhfpUHMWmRDtTpPfr qBBDN1YwzpMl5w+xVAtkKG546bTRaYjW82WXeRQXe8XjSUZbyhtL8I1WxbNpOCbaFY9W RKl8+HW5RueB5zeGNeHdI3biqD39jujN18SRrnSS8mZ8sm8KhOi27Y0NCBZnfV3qr+MJ nCOiaQf7N2bxiDc9ltLlxjKUYgNHK7GwK3f1zFtcv1NXFDvQ1PQWifHXh5g/RXapfZXg yYeb0xjnZstZc2WQINKQaaeQpyzo7oFKFwxr2fx4BmTXNHZQfA5DsfV7/B3Nm1QGF0IV sFjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:from:to:cc:date:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=t+9LgUZ8Z7YLalhopow0HKn2KFgwWUBuXqKjp7+v0hQ=; b=he7wSU3xk4lQzsk5e0wIjigDSW7dfVz1ttln5ARI7T6V4gqQKtcjJlLE25SZBbvFOM v1nxMrr92DrXSPJSWDuSN+S1sMLm87BvoQ4Zd5GTlRzhIup8upfVr9REdwynKDIHmH7t YXOdM/FBQQ/WORlCcznazvWQ3GKmjWIJBjt/r4Dnn/V6CnubuZafJca67Y91myt+maXv 3ucSKJ+RQMK9kb3yJ2yM17oDPep1UZVXQYqiLKAdCfRe2Sk2sAvv62YZC1yB1wvp6WhA NmI3n3U/nZNSXFedbH4IVTvn7+IjmhXHSS9l9Zx5fftPIqL0fg71NwAfjVF7zyAUsI+S RVMw== X-Gm-Message-State: AG10YOQZjC+tYs+DfIshVHLr3WmobF8ZEyjyYCH9kfRnZRXN6o+4thE+lCxhhCk4ZkuoSA== X-Received: by 10.112.199.41 with SMTP id jh9mr6689889lbc.125.1454246541206; Sun, 31 Jan 2016 05:22:21 -0800 (PST) Received: from localhost (ppp79-139-147-94.pppoe.spdop.ru. [79.139.147.94]) by smtp.gmail.com with ESMTPSA id a67sm3416877lfe.6.2016.01.31.05.22.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jan 2016 05:22:20 -0800 (PST) Subject: [PATCH] ovl: fix working on distributed fs as lower layer From: Konstantin Khlebnikov To: linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, Miklos Szeredi Cc: linux-kernel@vger.kernel.org, Alexander Viro Date: Sun, 31 Jan 2016 16:22:16 +0300 Message-ID: <145424653619.10827.10119853770850679426.stgit@zurg> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds missing .d_select_inode into alternative dentry_operations. Signed-off-by: Konstantin Khlebnikov Fixes: 7c03b5d45b8e ("ovl: allow distributed fs as lower layer") Fixes: 4bacc9c9234c ("overlayfs: Make f_path always point to the overlay and f_inode to the underlay") Reviewed-by: Nikolay Borisov Tested-by: Nikolay Borisov --- fs/overlayfs/super.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index e6ae59c7119c..1a354840f262 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -343,6 +343,7 @@ static const struct dentry_operations ovl_dentry_operations = { static const struct dentry_operations ovl_reval_dentry_operations = { .d_release = ovl_dentry_release, + .d_select_inode = ovl_d_select_inode, .d_revalidate = ovl_dentry_revalidate, .d_weak_revalidate = ovl_dentry_weak_revalidate, };