]> Gentwo Git Trees - linux/.git/commit
xfs: allow renames of project-less inodes
authorAndrey Albershteyn <aalbersh@redhat.com>
Mon, 4 Aug 2025 12:08:14 +0000 (14:08 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 28 Aug 2025 12:19:44 +0000 (14:19 +0200)
commit8d2f9f5c64f16e0717854fb66d795ebe8c30103b
treebc2c4e1940f6fc3f3998505f220bbf8b3cfc2b94
parentae668cd567a6a7622bc813ee0bb61c42bed61ba7
xfs: allow renames of project-less inodes

Special file inodes cannot have project ID set from userspace and
are skipped during initial project setup. Those inodes are left
project-less in the project directory. New inodes created after
project initialization do have an ID. Creating hard links or
renaming those project-less inodes then fails on different ID check.

In commit e23d7e82b707 ("xfs: allow cross-linking special files
without project quota"), we relaxed the project id checks to
allow hardlinking special files with differing project ids since the
projid cannot be changed. Apply the same workaround for renaming
operations.

Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_inode.c