diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 06a223d50a81..f3bfa87926bd 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -872,10 +872,10 @@ v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, | |||
872 | } else | 872 | } else |
873 | inode->i_rdev = 0; | 873 | inode->i_rdev = 0; |
874 | 874 | ||
875 | inode->i_size = stat->length; | 875 | i_size_write(inode, stat->length); |
876 | 876 | ||
877 | /* not real number of blocks, but 512 byte ones ... */ | 877 | /* not real number of blocks, but 512 byte ones ... */ |
878 | inode->i_blocks = (inode->i_size + 512 - 1) >> 9; | 878 | inode->i_blocks = (i_size_read(inode) + 512 - 1) >> 9; |
879 | } | 879 | } |
880 | 880 | ||
881 | /** | 881 | /** |