aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/fuse/dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 5b4e035b364c..5e361b122526 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -1678,6 +1678,8 @@ int fuse_do_setattr(struct inode *inode, struct iattr *attr,
if (is_truncate) {
fuse_set_nowrite(inode);
set_bit(FUSE_I_SIZE_UNSTABLE, &fi->state);
+ if (trust_local_mtime && attr->ia_size != inode->i_size)
+ attr->ia_valid |= ATTR_MTIME;
}
memset(&inarg, 0, sizeof(inarg));