diff --git a/fs/fuse/file.c b/fs/fuse/file.c index dc342edb399ba3a139e6d7146a0b071a999efee1..5ae2828beb003b693ab039d9f1f157ae6517f500 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -3155,6 +3155,10 @@ static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in, inode_lock(inode_out); + err = file_modified(file_out); + if (err) + goto out; + if (fc->writeback_cache) { err = fuse_writeback_range(inode_out, pos_out, pos_out + len); if (err) @@ -3193,6 +3197,7 @@ static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in, clear_bit(FUSE_I_SIZE_UNSTABLE, &fi_out->state); inode_unlock(inode_out); + file_accessed(file_in); return err; }