diff options
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index eae50c9d6dc4..7a7ec2d1d2f4 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -204,7 +204,6 @@ struct inode *v9fs_get_inode(struct super_block *sb, int mode) | |||
204 | inode->i_mode = mode; | 204 | inode->i_mode = mode; |
205 | inode->i_uid = current->fsuid; | 205 | inode->i_uid = current->fsuid; |
206 | inode->i_gid = current->fsgid; | 206 | inode->i_gid = current->fsgid; |
207 | inode->i_blksize = sb->s_blocksize; | ||
208 | inode->i_blocks = 0; | 207 | inode->i_blocks = 0; |
209 | inode->i_rdev = 0; | 208 | inode->i_rdev = 0; |
210 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 209 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
@@ -950,9 +949,8 @@ v9fs_stat2inode(struct v9fs_stat *stat, struct inode *inode, | |||
950 | 949 | ||
951 | inode->i_size = stat->length; | 950 | inode->i_size = stat->length; |
952 | 951 | ||
953 | inode->i_blksize = sb->s_blocksize; | ||
954 | inode->i_blocks = | 952 | inode->i_blocks = |
955 | (inode->i_size + inode->i_blksize - 1) >> sb->s_blocksize_bits; | 953 | (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; |
956 | } | 954 | } |
957 | 955 | ||
958 | /** | 956 | /** |