Skip to content

Commit

Permalink
Added resetting of InodeStat expiry in setattr as well
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Saurabh <[email protected]>
  • Loading branch information
Ankit Saurabh committed Nov 14, 2023
1 parent da9d0d5 commit c5730d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mountpoint-s3/src/inode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ impl Superblock {
InodeKind::Directory => self.inner.cache_config.dir_ttl,
};

// Resetting the InodeStat expiry because the new InodeStat should have new validity
sync.stat.update_validity(validity);

if let Some(t) = atime {
Expand Down

0 comments on commit c5730d3

Please sign in to comment.