f2fs: fix i_blocks translation on various types of files
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 7 Jun 2013 07:33:07 +0000 (16:33 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 11 Jun 2013 07:01:09 +0000 (16:01 +0900)
commit2d4d9fb591fe83d9f0559afaa9736ebc8edad0aa
tree27ef8c9fca7b1e56674ed23e3aecdacf36e67bd3
parent5fb08372a689360b7db51b0cfb9a068fddf279a2
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>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/namei.c