Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hfsplus: set ctime after setxattr and removexattr

The generic/728 test-case complains that:
(1) Expected ctime needs to be changed after setxattr;
(2) Expected ctime needs to be changed after removexattr.

This patch adds calling inode_set_ctime_current() in
__hfsplus_setxattr() and hfsplus_removexattr().

sudo ./check generic/728
FSTYP -- hfsplus
PLATFORM -- Linux/x86_64 hfsplus-testing-0001 7.0.0-rc1+ #6 SMP PREEMPT_DYNAMIC Mon Mar 9 14:29:30 PDT 2026
MKFS_OPTIONS -- /dev/loop51
MOUNT_OPTIONS -- /dev/loop51 /mnt/scratch

generic/728 35s ... 44s
Ran: generic/728
Passed all 1 tests

cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
cc: Yangtao Li <frank.li@vivo.com>
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Link: https://lore.kernel.org/r/20260309214947.1114618-2-slava@dubeyko.com
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>

+4
+4
fs/hfsplus/xattr.c
··· 410 410 goto end_setxattr; 411 411 } 412 412 413 + inode_set_ctime_current(inode); 414 + 413 415 end_setxattr: 414 416 hfs_find_exit(&cat_fd); 415 417 hfs_dbg("finished: res %d\n", err); ··· 896 894 err = -EIO; 897 895 goto end_removexattr; 898 896 } 897 + 898 + inode_set_ctime_current(inode); 899 899 900 900 end_removexattr: 901 901 hfs_find_exit(&cat_fd);