aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index c4b98c03a46e..4a28c3d37732 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -478,6 +478,7 @@ static int fuse_buffered_write(struct file *file, struct inode *inode,
478 int err; 478 int err;
479 size_t nres; 479 size_t nres;
480 struct fuse_conn *fc = get_fuse_conn(inode); 480 struct fuse_conn *fc = get_fuse_conn(inode);
481 struct fuse_inode *fi = get_fuse_inode(inode);
481 unsigned offset = pos & (PAGE_CACHE_SIZE - 1); 482 unsigned offset = pos & (PAGE_CACHE_SIZE - 1);
482 struct fuse_req *req; 483 struct fuse_req *req;
483 484
@@ -499,6 +500,7 @@ static int fuse_buffered_write(struct file *file, struct inode *inode,
499 if (!err) { 500 if (!err) {
500 pos += nres; 501 pos += nres;
501 spin_lock(&fc->lock); 502 spin_lock(&fc->lock);
503 fi->attr_version = ++fc->attr_version;
502 if (pos > inode->i_size) 504 if (pos > inode->i_size)
503 i_size_write(inode, pos); 505 i_size_write(inode, pos);
504 spin_unlock(&fc->lock); 506 spin_unlock(&fc->lock);