Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp802246ybr; Fri, 22 May 2020 21:10:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8cpJH/VmdyL0RyjjNMuiZTSYaEBr9Z56i8GRPg8KBUGd0XS5vtEVtjysr3tsd2HkjFact X-Received: by 2002:a50:f086:: with SMTP id v6mr5898407edl.140.1590207039816; Fri, 22 May 2020 21:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590207039; cv=none; d=google.com; s=arc-20160816; b=JGVUmmBefez5TByt4G2UgZFlMVOUEkW4jRF0pHFs513pbr+gtf0qOjg1GGqufVtUpZ g5s6PQsItGSuJQszwXWTSJcMrz0GVSVNE+RXaneFkao+wxuwJi7+/JgPQFu5oLQNK0YI yBXM6RgeM2ecm+D5i08tshhL/Y3TowV2c0CMIIwpTEOR81Z7IUNTXBeIXjm+1wRobcSd /47CPQVzDT+kyfeEkATjo8RdpNGYPjiuHdmDbAuWyqrtSH7VIDg9RSYQEQ7FhRdPb1JJ gVtf+pMdNJR4VtfpyhumVxP63Sm8y6jD09le4rclJlArh3hakbVWUk0wwe+6PvmOGnBo o99A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=F1bhCGQtRl8cBs0zYrkz/5FLXJrqBYq5wZlx9jEG8Uc=; b=W5F+giRecSvrdUsnL++hyJWIQlkww80yxQXXWHhH/6nIjGHkvQ/e12lGsAX0nWh1hh C/+HVNX1FtxTgub9+vrEETS5iG1JOq8jHtlZRabagtpDWbV2SUvdNARGgtbOsxKyABHL 7kG5xAI8RFij1/Q0PGEVWk2Ziv590QfowwKFi4zES32HrWWLuz2zhJnJhv+8nQIdazNs UI9S7z5xBagqjaCnCpUTTj9YlJycr1JKO62ADi7RUjOH+sYcpuLZLzZxpOo0XBS+f6Mf RALWFcUMTudodLO23gkIPBDMw3Veb9Dk0d53SYdV50iGGe83vdP43lEBB9VNIVvi5I9d dDNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DzeaLolo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si5477018ede.41.2020.05.22.21.10.17; Fri, 22 May 2020 21:10:39 -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=@redhat.com header.s=mimecast20190719 header.b=DzeaLolo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387582AbgEWEHq (ORCPT + 99 others); Sat, 23 May 2020 00:07:46 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:25873 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725294AbgEWEHp (ORCPT ); Sat, 23 May 2020 00:07:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590206864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=F1bhCGQtRl8cBs0zYrkz/5FLXJrqBYq5wZlx9jEG8Uc=; b=DzeaLolomh708EMfB9sr7hfe8y9wLr9050wX6hOBFVK6zLO9Z4yDGDBbKMivh3wjSXvkK9 iLlYU/TI2wYyB6/MfBKPcY+YjqMNtsJDRxnNJGGQZrApmXjdTV5fU0x8e/68br9JPe1I4t Kqe1LGhGyfl1dObozmAGl27Yh+InJZE= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-494-BxYPg-3LPIm3itgG48LKyQ-1; Sat, 23 May 2020 00:07:40 -0400 X-MC-Unique: BxYPg-3LPIm3itgG48LKyQ-1 Received: by mail-qt1-f199.google.com with SMTP id v17so13984904qtp.15 for ; Fri, 22 May 2020 21:07:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F1bhCGQtRl8cBs0zYrkz/5FLXJrqBYq5wZlx9jEG8Uc=; b=N/B8/ZFLk+8/32TqC0Q32PCmr7E5wt4+o6UJt7c70/GeLjw2qxGapLUVRxhjHufIm2 CmLI2UPS23Dz4Pk8so4jdwM+f4Tc8OxHWqavAn8PSxIo8lKIE7DBCjPO9ko7jYwxgxY0 VEEXE7h3G6fJIqz0481Mjd2+ZJf93J0jNMEHrKct7HDSQBjN+BqgnYVIUoDlQQ7oxUR+ UqsHpYT5glESvROpXmq6yioSlCx3ERSAzv3+tAs0X25ZD/Tz2lnZ36cUgZyCnaNIXVRf xmYz30YylHgynm0Xj9wxauJso6FpcOYhP04TfmxKOVpTb0dHaYGPqlb9O10aXRxG6U5Z TDvQ== X-Gm-Message-State: AOAM533td9STlbWGnaW/rlar8yR8Me5wyCQG77fwA3V28l1v81LWXuWj c+i0WRy6GVrXRpEYR8QtlxSGHaJ3zAF4UnZVBp8/rTyT5V0R54YzkG87eJay41iF0mTLwEseh05 wBG7zqqRn8F+BQI9tXXuzTpK1HoilzsBSKp0T1tOa X-Received: by 2002:a37:270a:: with SMTP id n10mr17623768qkn.288.1590206860004; Fri, 22 May 2020 21:07:40 -0700 (PDT) X-Received: by 2002:a37:270a:: with SMTP id n10mr17623751qkn.288.1590206859751; Fri, 22 May 2020 21:07:39 -0700 (PDT) MIME-Version: 1.0 References: <20200522085723.29007-1-mszeredi@redhat.com> <20200522160815.GT23230@ZenIV.linux.org.uk> <20200522195626.GV23230@ZenIV.linux.org.uk> In-Reply-To: <20200522195626.GV23230@ZenIV.linux.org.uk> From: Miklos Szeredi Date: Sat, 23 May 2020 06:07:28 +0200 Message-ID: Subject: Re: [PATCH] ovl: make private mounts longterm To: Al Viro Cc: Amir Goldstein , overlayfs , linux-fsdevel , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 22, 2020 at 9:56 PM Al Viro wrote: > > On Fri, May 22, 2020 at 08:53:49PM +0200, Miklos Szeredi wrote: > > Right, we should just get rid of ofs->upper_mnt and ofs->upperdir_trap > > and use ofs->layers[0] to store those. > > For that you'd need to allocate ->layers before you get to ovl_get_upper(), > though. I'm not saying it's a bad idea - doing plain memory allocations > before anything else tends to make failure exits cleaner; it's just that > it'll take some massage. Basically, do ovl_split_lowerdirs() early, > then allocate everything you need, then do lookups, etc., filling that > stuff. That was exactly the plan I set out. > Regarding this series - the points regarding the name choice and the > need to document the calling conventions change still remain. Agreed. Thanks, Miklos