diff options
author | Abhishek Kulkarni <adkulkar@umail.iu.edu> | 2009-09-22 12:34:05 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@strongmad.austin.ibm.com> | 2009-09-23 14:03:46 -0400 |
commit | 7549ae3e81cc45908cbeee54a52b24f247fb0a2d (patch) | |
tree | cda0ffbb0f5025375ecd48e828d757283e075da8 /fs/9p/vfs_inode.c | |
parent | 7043078630bbc9eb908a56e08077c5abe7f2d311 (diff) |
9p: Use the i_size_[read, write]() macros instead of using inode->i_size directly.
Change all occurrence of inode->i_size with i_size_read() or i_size_write()
as appropriate.
Signed-off-by: Abhishek Kulkarni <adkulkar@umail.iu.edu>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
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 | /** |