summaryrefslogtreecommitdiff
path: root/fs/btrfs/relocation.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2024-08-12 19:30:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-18 20:25:10 +0300
commita314bb665a2a6be5f7422ac58ab9c2b172073251 (patch)
tree7213e28a5a85740e1a6e9bb4246de915ca014b3d /fs/btrfs/relocation.h
parent45ce59266a752fbbe535aefc45da2abaea014992 (diff)
downloadlinux-a314bb665a2a6be5f7422ac58ab9c2b172073251.tar.xz
btrfs: update target inode's ctime on unlink
[ Upstream commit 3bc2ac2f8f0b78a13140fc72022771efe0c9b778 ] Unlink changes the link count on the target inode. POSIX mandates that the ctime must also change when this occurs. According to https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlink.html: "Upon successful completion, unlink() shall mark for update the last data modification and last file status change timestamps of the parent directory. Also, if the file's link count is not 0, the last file status change timestamp of the file shall be marked for update." Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: David Sterba <dsterba@suse.com> [ add link to the opengroup docs ] Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/btrfs/relocation.h')
0 files changed, 0 insertions, 0 deletions