Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1222F168A7 for ; Tue, 19 Dec 2023 12:08:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="oFOI36Iw" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=jjVWGy6/2+BHOq7pe4Qmq/Z620/4xWD7NwHkok1eZSA=; b=oFOI36Iw6A8u5/ph5gT8xIPxwn JOWbki6QbugzAnMHN9kJWm6DbHhsw4DflsRLiuRD7KKMs+Ooh3jIjnD6Xi0MI6te002LGOyzWoIn1 8UMWBO68lfuWXDN8da8657GLq/bwYblMMM8NGmH87516dKu24uXwY51ePhkKv9OEj3TWDJMiBAbu1 /C3LlicPFAu8saNab048HHXUI+bTOGAD8PnwOoeZpyzAQregkX5Y//TWQBe7uennys7cniFCB1dW0 /Tm3UtRrXeHQ9gaHxtuDcFidnBge1ql0wYUGAO3TYpiHEQYceTMK6D/FC/9oLOBXInldnmSeOr/0s przVqoqA==; Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFYtW-00DyD9-2d; Tue, 19 Dec 2023 12:08:19 +0000 From: Christoph Hellwig To: Chandan Babu R Cc: "Darrick J. Wong" , linux-xfs@vger.kernel.org Subject: attr cleanups v2 Date: Tue, 19 Dec 2023 13:08:09 +0100 Message-Id: <20231219120817.923421-1-hch@lst.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Hi all, this series started by trying to remove xfs_attr_shortform as sparse complains about it due using a variable sized array in struct using in a variable sized array. I ended up cleaning a lot more code around it once I started looking into it, including some basic cleanups for the inode fork inline data memory management (I'll have another series for more work there at a later time). Note that the dir2 equivalent for the structure has already been removed long time ago. Changes since v1: - fix commit message typos - better document the shortform attr layout, stealing text from the dir2_sf definition. Diffstat: libxfs/xfs_attr.c | 28 ++--- libxfs/xfs_attr_leaf.c | 215 ++++++++++++++------------------------------ libxfs/xfs_attr_leaf.h | 7 - libxfs/xfs_attr_sf.h | 24 +++- libxfs/xfs_bmap.c | 4 libxfs/xfs_da_format.h | 33 +++--- libxfs/xfs_dir2.c | 2 libxfs/xfs_dir2_block.c | 6 - libxfs/xfs_dir2_sf.c | 78 ++++++--------- libxfs/xfs_iext_tree.c | 36 +++---- libxfs/xfs_inode_fork.c | 70 ++++++-------- libxfs/xfs_inode_fork.h | 10 -- libxfs/xfs_ondisk.h | 14 +- libxfs/xfs_symlink_remote.c | 4 scrub/attr.c | 17 +-- scrub/inode_repair.c | 4 scrub/readdir.c | 6 - scrub/symlink.c | 2 xfs_attr_list.c | 13 +- xfs_dir2_readdir.c | 6 - xfs_inode.c | 6 - xfs_inode_item.c | 10 -- xfs_symlink.c | 4 23 files changed, 243 insertions(+), 356 deletions(-)