From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f54.google.com ([209.85.218.54]:38531 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751932AbeEGK3i (ORCPT ); Mon, 7 May 2018 06:29:38 -0400 Received: by mail-oi0-f54.google.com with SMTP id k17-v6so24647385oih.5 for ; Mon, 07 May 2018 03:29:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20180507083807.28792-1-mszeredi@redhat.com> <20180507083807.28792-23-mszeredi@redhat.com> From: Miklos Szeredi Date: Mon, 7 May 2018 12:29:37 +0200 Message-ID: Subject: Re: [PATCH v2 22/35] vfs: don't open real To: Amir Goldstein Cc: overlayfs , linux-fsdevel , linux-kernel , Al Viro Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, May 7, 2018 at 12:27 PM, Amir Goldstein wrote: > On Mon, May 7, 2018 at 11:37 AM, Miklos Szeredi wrote: >> Let overlayfs do its thing when opening a file. >> >> This enables stacking and fixes the corner case when a file is opened for >> read, modified through a writable open, and data is read from the read-only >> file. After this patch the read-only open will not return stale data even >> in this case. >> > > So now you can get rid of ovl_do_check_copy_up() and the check_copy_up > module param ;-) Ah, forgot about that one. Indeed. Thanks, Miklos