Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4028301ybg; Fri, 25 Oct 2019 12:17:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxILnEyK69jsfeLlLD9wvSE7vhkGnoOVUtMLiVywKj+lU8fFWt1w+7PDQIaFOI60i/XhJPv X-Received: by 2002:a05:6402:21d3:: with SMTP id bi19mr5857421edb.104.1572031061026; Fri, 25 Oct 2019 12:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031061; cv=none; d=google.com; s=arc-20160816; b=GPDFRbj8y5ZC4Gc+isPQyEtaxEnyDc7YFu1BI5dkVJ6fvxbAxgoyRcQWiJ31gHTMVS guZHBkAVte++Wn1/C9u74qnqgh1VlaQSqdKwwJtagcH+KYUDvF2sWNMiOKv4aMQ6KC6N 7+WM96ikklZWtxiecfA2xRLcU7Sklv1D71byoKnl0kQGkTskeBVX5Dh7GVPPsJOIdCzD 8TJvvmxjHhud9TCGOx/UtWe4ZHBdW7PyPIGUaPkHbbyF6qMFN6bom361VIn++tgFrRVV 1oSqxcCA5WtcSWtWkk9UcU6uHVhESsVs2xDXmoUIHaRi6T4qVuXVITWRByqULbKCxs2m N57w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=H1GaUvponGzx8dfabBhKW2OqVVQdC3N0IbNOHN+GfyA=; b=vVIqFRUTEb4oJ/8mUo0qaC+FjzYSCO+G9K92tdPvzKKiaXX9InPe4on7GXTDozd1om /Dea/+2u7RJiEF3l+NBd9Wt9ODWNk8W1fxX8ZahK+WdSZtb/t0MDYXbII/nGkmXYSUwa hfRAj8qpKiUD33mqQXcVui7ODBl8DLVTV7dinzV9gEcxDExk+iAKpJkdj2nFLyKwW5h7 KTmU3i1zlsTfu+cJnk5ABGGumrO33RcAE1G/0GYA3W1ZffQqwSNKzEGsna/JvgkoGONw U5wdPT0vPn3WWAWcC/KWUkgUiY1+bouGcPOrhjg7UiHeTKLcHZft6gEGYxFSd8tvb6eK OA9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@plexistor-com.20150623.gappssmtp.com header.s=20150623 header.b=F7CvUN1n; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si1895984edb.41.2019.10.25.12.17.17; Fri, 25 Oct 2019 12:17:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@plexistor-com.20150623.gappssmtp.com header.s=20150623 header.b=F7CvUN1n; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388530AbfJYBPu (ORCPT + 99 others); Thu, 24 Oct 2019 21:15:50 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:41383 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388565AbfJYBPu (ORCPT ); Thu, 24 Oct 2019 21:15:50 -0400 Received: by mail-ed1-f68.google.com with SMTP id a21so497141edj.8 for ; Thu, 24 Oct 2019 18:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plexistor-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=H1GaUvponGzx8dfabBhKW2OqVVQdC3N0IbNOHN+GfyA=; b=F7CvUN1nPbeQ3ofUpTfw3ik8aSK5aNiLPnsPsnj56b2FzDgopyq8dS+4OdywSY3cRK Eb7pBK79RZCAqa7dMaDNiALdZ1Q3F4Qp1fNImEMnjWIyz47c4BHaKK+WCMwcPVNBfHiN xknjfj8h/cTsqLjN1CpurQu9NYku85BMGiwf+6d9S5cE50PlssibV/Qo7E4k6g+D1o7G BXtMdHwxSZDmgNJWJzqGOPCg0ZODwFjbIvuczE7ACnosAFZZhRB0n7cefeG6+aipnjAf ijbC86raCT7G6EcIKb+iSX/posRmH1Oq7/anIPBl3mwLVo+v+cMt72aXJqlVakb/ePHY pyYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=H1GaUvponGzx8dfabBhKW2OqVVQdC3N0IbNOHN+GfyA=; b=kR4kFuEMXssL37v3LIpmXeVw1HMvQECfbhU/JJvMMyBJbwqhrcwnnEH07CBLobm5kN f3UlKk+5b7PzakwDEN1jSXk8C80PO6wTo/9bhs5ZUonjIrNBEtet/6Tz7EmX1tAxZjFn wFEEETk3TcIfrM5L+VGvhWQ75uBfEEhisJ9evFA05D3JnuMMRLvwIJtG7j7fT3VWQNOz vefA41y+q7albxhzPAiho/TopG1LdNVy0RW0qgaj1XS/SFxLd09MV3LcyAClDlMoWy1+ 4mIO70IlVzWuvuEt/B60B0LZN1x60EINid7S1ksYtGED0YqCdcsmbaXA1P9Y1xOKYAzN 6c4g== X-Gm-Message-State: APjAAAURLkqNQwjHk55xSpYlJHVICIQY9dIYYGOsE5XgEpbMNCpt0fcZ cZcjeNVwaUuM3VK6wwD/+s7I1w== X-Received: by 2002:a50:cbc2:: with SMTP id l2mr1201839edi.304.1571966147286; Thu, 24 Oct 2019 18:15:47 -0700 (PDT) Received: from [10.68.217.182] ([217.70.210.43]) by smtp.googlemail.com with ESMTPSA id gj14sm1695ejb.62.2019.10.24.18.15.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Oct 2019 18:15:46 -0700 (PDT) Subject: Re: [PATCH 0/5] Enable per-file/directory DAX operations To: Dave Chinner , Boaz Harrosh Cc: ira.weiny@intel.com, linux-kernel@vger.kernel.org, Alexander Viro , "Darrick J. Wong" , Dan Williams , Christoph Hellwig , "Theodore Y. Ts'o" , Jan Kara , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org References: <20191020155935.12297-1-ira.weiny@intel.com> <20191023221332.GE2044@dread.disaster.area> <20191024073446.GA4614@dread.disaster.area> <20191024213508.GB4614@dread.disaster.area> <20191025003603.GE4614@dread.disaster.area> From: Boaz Harrosh Message-ID: <9ffbc2a5-c85b-3633-1ad5-a9a3fe33cd2e@plexistor.com> Date: Fri, 25 Oct 2019 04:15:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191025003603.GE4614@dread.disaster.area> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 25/10/2019 03:36, Dave Chinner wrote: > On Fri, Oct 25, 2019 at 02:29:04AM +0300, Boaz Harrosh wrote: <> >> Perhaps we always go by the directory. And then do an mv dir_DAX/foo dir_NODAX/foo > > The inode is instatiated before the rename is run, so it's set up > with it's old dir config, not the new one. So this ends up with the > same problem of haivng to change the S_DAX flag and aops vector > dynamically on rename. Same problem, not a solution. > Yes Admin needs a inode-drop_caches after the mv if she/he wants an effective change. >> to have an effective change. In hard links the first one at iget time before populating >> the inode cache takes affect. > > If something like a find or backup program brings the inode into > cache, the app may not even get the behaviour it wants, and it can't > change it until the inode is evicted from cache, which may be never. inode-drop-caches. (echo 2 > /proc/sys/vm/drop_caches) > Nobody wants implicit/random/uncontrollable/unchangeable behaviour > like this. > You mean in the case of hard links between different mode directories? I agree it is not so good. I do not like it too. <> > We went over all this ground when we disabled the flag in the first > place. We disabled the flag because we couldn't come up with a sane > way to flip the ops vector short of tracking the number of aops > calls in progress at any given time. i.e. reference counting the > aops structure, but that's hard to do with a const ops structure, > and so it got disabled rather than allowing users to crash > kernels.... > Do you mean dropping this patchset all together? I missed that. Current patchset with the i_size == 0 thing is really bad I think. Its the same has dropping the direct change all together and only supporting inheritance from parent. [Which again for me is really not interesting] > Cheers, > -Dave. Lets sleep on it. Please remind me if xfs supports clone + DAX Thanks Dave Boaz