diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index a28fe9fa20a4..3e3ffe3ad1a0 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -521,6 +521,7 @@ static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir) | |||
521 | drop_nlink(dir); | 521 | drop_nlink(dir); |
522 | } else | 522 | } else |
523 | drop_nlink(file_inode); | 523 | drop_nlink(file_inode); |
524 | v9fs_invalidate_inode_attr(file_inode); | ||
524 | } | 525 | } |
525 | return retval; | 526 | return retval; |
526 | } | 527 | } |
@@ -884,6 +885,8 @@ clunk_newdir: | |||
884 | inc_nlink(new_dir); | 885 | inc_nlink(new_dir); |
885 | drop_nlink(old_dir); | 886 | drop_nlink(old_dir); |
886 | } | 887 | } |
888 | v9fs_invalidate_inode_attr(old_inode); | ||
889 | |||
887 | /* successful rename */ | 890 | /* successful rename */ |
888 | d_move(old_dentry, new_dentry); | 891 | d_move(old_dentry, new_dentry); |
889 | } | 892 | } |
@@ -983,6 +986,7 @@ static int v9fs_vfs_setattr(struct dentry *dentry, struct iattr *iattr) | |||
983 | if (retval < 0) | 986 | if (retval < 0) |
984 | return retval; | 987 | return retval; |
985 | 988 | ||
989 | v9fs_invalidate_inode_attr(dentry->d_inode); | ||
986 | if ((iattr->ia_valid & ATTR_SIZE) && | 990 | if ((iattr->ia_valid & ATTR_SIZE) && |
987 | iattr->ia_size != i_size_read(dentry->d_inode)) { | 991 | iattr->ia_size != i_size_read(dentry->d_inode)) { |
988 | retval = vmtruncate(dentry->d_inode, iattr->ia_size); | 992 | retval = vmtruncate(dentry->d_inode, iattr->ia_size); |