Skip to content
Commit 3bc2ac2f authored by Jeff Layton's avatar Jeff Layton Committed by David Sterba
Browse files

btrfs: update target inode's ctime on unlink

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: default avatarJeff Layton <jlayton@kernel.org>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ add link to the opengroup docs ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent c0247d28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment