]> Gentwo Git Trees - linux/.git/commit
xfs: add .fileattr_set and fileattr_get callbacks for symlinks
authorAndrey Albershteyn <aalbersh@redhat.com>
Mon, 4 Aug 2025 12:08:15 +0000 (14:08 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 28 Aug 2025 12:19:52 +0000 (14:19 +0200)
commit8a221004fe5288b66503699a329a6b623be13f91
tree775ac88c57894815076793244305630c04527b35
parent8d2f9f5c64f16e0717854fb66d795ebe8c30103b
xfs: add .fileattr_set and fileattr_get callbacks for symlinks

As there are now file_getattr() and file_setattr(), xfs_quota will
call them on special files. These new syscalls call ->fileattr_get/set.

Symlink inodes don't have callbacks to set file attributes. This
patch adds them. The attribute values combinations are checked in
fileattr_set_prepare().

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_iops.c