aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dir.c')
-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,
1678 if (is_truncate) { 1678 if (is_truncate) {
1679 fuse_set_nowrite(inode); 1679 fuse_set_nowrite(inode);
1680 set_bit(FUSE_I_SIZE_UNSTABLE, &fi->state); 1680 set_bit(FUSE_I_SIZE_UNSTABLE, &fi->state);
1681 if (trust_local_mtime && attr->ia_size != inode->i_size)
1682 attr->ia_valid |= ATTR_MTIME;
1681 } 1683 }
1682 1684
1683 memset(&inarg, 0, sizeof(inarg)); 1685 memset(&inarg, 0, sizeof(inarg));