summaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-12-11 06:35:22 -0500
committerJeff Layton <jlayton@redhat.com>2018-01-29 06:42:21 -0500
commite38cf302b2e92a870f23e07c4390e04685779340 (patch)
tree4a59d032a40104f990883b445dc725f5fec8bba8 /fs/proc
parent3b370b215f4b45c0be87d7a15b0d0e2e8b238aee (diff)
downloadlinux-e38cf302b2e92a870f23e07c4390e04685779340.tar.bz2
fs: only set S_VERSION when updating times if necessary
We only really need to update i_version if someone has queried for it since we last incremented it. By doing that, we can avoid having to update the inode if the times haven't changed. If the times have changed, then we go ahead and forcibly increment the counter, under the assumption that we'll be going to the storage anyway, and the increment itself is relatively cheap. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/proc')
0 files changed, 0 insertions, 0 deletions