From patchwork Thu Sep 15 09:26:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiyang Ruan X-Patchwork-Id: 12977113 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04954ECAAD3 for ; Thu, 15 Sep 2022 09:27:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6B7276B0071; Thu, 15 Sep 2022 05:27:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 667CF6B0075; Thu, 15 Sep 2022 05:27:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52E9B8D0001; Thu, 15 Sep 2022 05:27:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 449CB6B0071 for ; Thu, 15 Sep 2022 05:27:33 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 0D17AA0C98 for ; Thu, 15 Sep 2022 09:27:33 +0000 (UTC) X-FDA: 79913791986.11.EA54AB0 Received: from mail1.bemta32.messagelabs.com (mail1.bemta32.messagelabs.com [195.245.230.1]) by imf12.hostedemail.com (Postfix) with ESMTP id 5B067400C1 for ; Thu, 15 Sep 2022 09:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.com; s=170520fj; t=1663234050; i=@fujitsu.com; bh=rHF3G99arO5Xb1oOl6p2CWpKaTC4O51FiBED8qOOawQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=bHALgolozupaHtv90j1WQqk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T+EmdpUyc35N2iM1xyAiwuB5zIOA2ZlB79atm tJ6JkTy6cxVXbdKlha4LP7L6fjlvsSTa4e2CJnOP/1+Ottii7mW3/5U1k3ac5Dt2NVH8m2Fc9 /FZAUe0WjULZDarj6NqaWjm6tX758dX+OD6qp30U+SypdtyrZ8Jr1dX074ndT9mzrf562vOif hLhciUzSx7mjykZ7NXZ8DLdtn/LpbeOLIjgsf5vtn3ZshzL0x6U+H1G3NzwxaX+6u7HkarCAo bOPDcSxs99+34ldtHixz//chxlm+kOfBskXezb4XXHe/5rog1Mc22eO77MXC8BYOib9p99a/i 8q6GXhMiaU4I9FQi7moOBEAbXydKoYDAAA= X-Env-Sender: ruansy.fnst@fujitsu.com X-Msg-Ref: server-2.tower-591.messagelabs.com!1663234049!81541!1 X-Originating-IP: [62.60.8.146] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.87.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17759 invoked from network); 15 Sep 2022 09:27:30 -0000 Received: from unknown (HELO n03ukasimr02.n03.fujitsu.local) (62.60.8.146) by server-2.tower-591.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 Sep 2022 09:27:30 -0000 Received: from n03ukasimr02.n03.fujitsu.local (localhost [127.0.0.1]) by n03ukasimr02.n03.fujitsu.local (Postfix) with ESMTP id BABF41000C2; Thu, 15 Sep 2022 10:27:29 +0100 (BST) Received: from R01UKEXCASM121.r01.fujitsu.local (R01UKEXCASM121 [10.183.43.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by n03ukasimr02.n03.fujitsu.local (Postfix) with ESMTPS id AC341100078; Thu, 15 Sep 2022 10:27:29 +0100 (BST) Received: from localhost.localdomain (10.167.225.141) by R01UKEXCASM121.r01.fujitsu.local (10.183.43.173) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Thu, 15 Sep 2022 10:27:26 +0100 From: Shiyang Ruan To: , , , , CC: , Subject: [RFC PATCH] xfs: drop experimental warning for fsdax Date: Thu, 15 Sep 2022 09:26:42 +0000 Message-ID: <1663234002-17-1-git-send-email-ruansy.fnst@fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.225.141] X-ClientProxiedBy: G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) To R01UKEXCASM121.r01.fujitsu.local (10.183.43.173) X-Virus-Scanned: ClamAV using ClamSMTP ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663234052; h=from:from:sender: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:in-reply-to: references:dkim-signature; bh=rHF3G99arO5Xb1oOl6p2CWpKaTC4O51FiBED8qOOawQ=; b=WcRs71xiMGTpQT/oLoHE8tehmAEsUwOCzszrg4RfCEDzLV5P90Eq08/1XYOOo752Hg9lJp Y4HFjVMimuS+xGPbRdzfDAPjLFD1roGEpvh5jbCVyxK8TFr2GZ3IzQ4dtTbOS7lbXQOFdR zDh5k+xFRwtpc3mleZ5mZdnlym+ntJI= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=fujitsu.com header.s=170520fj header.b=bHALgolo; dmarc=pass (policy=none) header.from=fujitsu.com; spf=pass (imf12.hostedemail.com: domain of ruansy.fnst@fujitsu.com designates 195.245.230.1 as permitted sender) smtp.mailfrom=ruansy.fnst@fujitsu.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663234052; a=rsa-sha256; cv=none; b=yOhNZwaVqkl6C/YCV4FiJ3MAeV8fYB/7Obgc7xLdr6yQQQVS74MQHdGkdcWZppCyopZntJ +ROJlkBKbB/vu8DoXWV+z2hGw5NTNSiqEu5RyNAV0a2NC/Yzs8oTYZJykipIzWoPmgO8Me nxM4w+3VJQak1c4hYuNDaCshQo7+TuU= X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 5B067400C1 X-Rspam-User: X-Stat-Signature: qjstpehn9qhumfgcxwa11bbeatgeimku Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=fujitsu.com header.s=170520fj header.b=bHALgolo; dmarc=pass (policy=none) header.from=fujitsu.com; spf=pass (imf12.hostedemail.com: domain of ruansy.fnst@fujitsu.com designates 195.245.230.1 as permitted sender) smtp.mailfrom=ruansy.fnst@fujitsu.com X-HE-Tag: 1663234052-764658 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Since reflink&fsdax can work together now, the last obstacle has been resolved. It's time to remove restrictions and drop this warning. Signed-off-by: Shiyang Ruan --- fs/xfs/xfs_ioctl.c | 4 ---- fs/xfs/xfs_iops.c | 4 ---- fs/xfs/xfs_super.c | 1 - 3 files changed, 9 deletions(-) diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 1f783e979629..13f1b2add390 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -1138,10 +1138,6 @@ xfs_ioctl_setattr_xflags( if ((fa->fsx_xflags & FS_XFLAG_REALTIME) && xfs_is_reflink_inode(ip)) ip->i_diflags2 &= ~XFS_DIFLAG2_REFLINK; - /* Don't allow us to set DAX mode for a reflinked file for now. */ - if ((fa->fsx_xflags & FS_XFLAG_DAX) && xfs_is_reflink_inode(ip)) - return -EINVAL; - /* diflags2 only valid for v3 inodes. */ i_flags2 = xfs_flags2diflags2(ip, fa->fsx_xflags); if (i_flags2 && !xfs_has_v3inodes(mp)) diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 45518b8c613c..c2e9d7c74170 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -1171,10 +1171,6 @@ xfs_inode_supports_dax( if (!S_ISREG(VFS_I(ip)->i_mode)) return false; - /* Only supported on non-reflinked files. */ - if (xfs_is_reflink_inode(ip)) - return false; - /* Block size must match page size */ if (mp->m_sb.sb_blocksize != PAGE_SIZE) return false; diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 9ac59814bbb6..fe7e24c353b9 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -358,7 +358,6 @@ xfs_setup_dax_always( return -EINVAL; } - xfs_warn(mp, "DAX enabled. Warning: EXPERIMENTAL, use at your own risk"); return 0; disable_dax: