diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-06-07 03:33:07 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-06-11 03:01:09 -0400 |
commit | 2d4d9fb591fe83d9f0559afaa9736ebc8edad0aa (patch) | |
tree | 27ef8c9fca7b1e56674ed23e3aecdacf36e67bd3 /fs/f2fs/f2fs.h | |
parent | 5fb08372a689360b7db51b0cfb9a068fddf279a2 (diff) |
f2fs: fix i_blocks translation on various types of files
Basically an inode manages the number of allocated blocks with inode->i_blocks
which is represented in a unit of sectors, not file system blocks.
But, f2fs has used i_blocks in a unit of file system blocks, and f2fs_getattr
translates it to the number of sectors when fstat is called.
However, previously f2fs_file_inode_operations only has this, so this patch adds
it to all the types of inode_operations.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 4f2c209ae8c1..c344a4d640cb 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -903,6 +903,7 @@ static inline int f2fs_readonly(struct super_block *sb) | |||
903 | int f2fs_sync_file(struct file *, loff_t, loff_t, int); | 903 | int f2fs_sync_file(struct file *, loff_t, loff_t, int); |
904 | void truncate_data_blocks(struct dnode_of_data *); | 904 | void truncate_data_blocks(struct dnode_of_data *); |
905 | void f2fs_truncate(struct inode *); | 905 | void f2fs_truncate(struct inode *); |
906 | int f2fs_getattr(struct vfsmount *, struct dentry *, struct kstat *); | ||
906 | int f2fs_setattr(struct dentry *, struct iattr *); | 907 | int f2fs_setattr(struct dentry *, struct iattr *); |
907 | int truncate_hole(struct inode *, pgoff_t, pgoff_t); | 908 | int truncate_hole(struct inode *, pgoff_t, pgoff_t); |
908 | int truncate_data_blocks_range(struct dnode_of_data *, int); | 909 | int truncate_data_blocks_range(struct dnode_of_data *, int); |