Skip to content
Commit 3a8c7231 authored by Jeff Layton's avatar Jeff Layton
Browse files

btrfs: only dirty the inode in btrfs_update_time if something was changed



At this point, we know that "now" and the file times may differ, and we
suspect that the i_version has been flagged to be bumped. Attempt to
bump the i_version, and only mark the inode dirty if that actually
occurred or if one of the times was updated.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Acked-by: default avatarDavid Sterba <dsterba@suse.com>
Reviewed-by: default avatarLiu Bo <bo.li.liu@oracle.com>
parent d17260fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment