Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp189482pxu; Tue, 1 Dec 2020 08:57:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM7TArGZzVW7nVPa6xH4OYZx3dvconPjqs4ln/XzztD0roRjy+NJV50etlClY+q2PwY1WZ X-Received: by 2002:a17:906:1412:: with SMTP id p18mr4055256ejc.480.1606841879519; Tue, 01 Dec 2020 08:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606841879; cv=none; d=google.com; s=arc-20160816; b=mwBhTnh3O8cRY9cy3rV77vrlk3QCGlEjLdWu/5wD+92XZjIDF4Xe2cFAGJOD1RkJIy 6UeE0oFwzcgCrsxK0a6bdkgzdcys9dudmgUSiGl0dQB8iss7Tz8ZDzX6DkY2Wy0Zvi4+ 5MeFL4cDm5X8z+qsUjFVMeCXqQHVAARM5eMQjG+/w8B519zFRCMzPOIjwTST6KvbS+vt ZEhJ4TCDZPryohnfN8KdKrL945C9xGH2DGdo9VTLyKUQJTKylK9YZESPiBzMDr3Qq/lm on2anAoFxoYPvd7uCfW/qhKOspZDoAFxVA2MhAyXR/qvX+FYNUcUrS/g4Nq1yE5wnHE1 EJGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to :dkim-signature; bh=NwanTEN/hmPAe2sJLS/eqUBj8LvT15GIF6AmdOzB/hQ=; b=Qywd11ANcP5xUJvu0bSujZalF9cYSWUZh+VhJ0d/X1CVlQ/ypYas4/Vg9kF7bjbwkz SlCW52w4MI4dODX4CXhvHtMuqwkvmqH1qvpKoxTxNAy8777qxQ/skZtwHRyoGbz55nO0 Fcr+XhBJXmuibcAVxvnwF9kHHPgUp6XaKHNp0B0ghFQnpDhQeP1pPjeFuUhZooUvZgvw q1auizgT5CHhna8lcWvykaSA54ruRMfZ39ouv7yU1LG6fDGnKr/o/uhTNZpPBIyBd5WA PP1NiJszayp4M90NpFFsYA4WjiCYY3hJe7YKZHm4w10BWCyVx8JQyexklR1KeSblenP+ Rgiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JGbilGkh; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 a13si296195ejc.128.2020.12.01.08.57.31; Tue, 01 Dec 2020 08:57:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=JGbilGkh; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S2391500AbgLAQ4A (ORCPT + 99 others); Tue, 1 Dec 2020 11:56:00 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36190 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388822AbgLAQz7 (ORCPT ); Tue, 1 Dec 2020 11:55:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606841673; 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: content-transfer-encoding:content-transfer-encoding; bh=NwanTEN/hmPAe2sJLS/eqUBj8LvT15GIF6AmdOzB/hQ=; b=JGbilGkhUqNCT7aYUu0mukbdHcUpk+2RoWXJEQnEEsrZ7A407Eo/69KpZY2/3qRw0zbIZv szaGbQqdDt4Xy2d6rWSw0F7vharo8ByqwYvM3AKjx241d62gfrxW0EzjND5f0O1vRHpUZn XQxFs6aSraJuCB2GtnYztvGpgEYdQdQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-1-WUkMC5nKOzGqhtjG1LndVg-1; Tue, 01 Dec 2020 11:54:32 -0500 X-MC-Unique: WUkMC5nKOzGqhtjG1LndVg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 98FBE84A5E0; Tue, 1 Dec 2020 16:54:30 +0000 (UTC) Received: from liberator.sandeen.net (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8E72210013C1; Tue, 1 Dec 2020 16:54:26 +0000 (UTC) To: torvalds@linux-foundation.org, Miklos Szeredi , Ira Weiny , David Howells Cc: linux-fsdevel@vger.kernel.org, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, xfs , linux-ext4@vger.kernel.org, Xiaoli Feng , Eric Sandeen From: Eric Sandeen Subject: [PATCH 0/2] statx: Fix DAX attribute collision and handling Message-ID: Date: Tue, 1 Dec 2020 10:54:26 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org There are two issues with the statx DAX attribute in the kernel today: 1) Its value clashes with STATX_ATTR_MOUNT_ROOT as dhowells previously reported 2) It is not set in the statx attributes_mask as reported by xifeng This short series changes the STATX_ATTR_DAX value, and moves the reporting from the vfs into the dax-capable filesystems so that they can set the statx atrributes_mask appropriately. Thanks, -Eric