commit | 3a8c7231d53641a21d794c7406044e19ad299a00 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@redhat.com> | Mon Dec 11 06:35:24 2017 -0500 |
committer | Jeff Layton <jlayton@redhat.com> | Mon Jan 29 06:42:21 2018 -0500 |
tree | 9fa581ae47fc8fe9c43667c039c8cc5e21ea7170 | |
parent | d17260fd5f9cd5c112cbcbbfd3024186d34c02d7 [diff] |
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: Jeff Layton <jlayton@redhat.com> Acked-by: David Sterba <dsterba@suse.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com>