f2fs: introduce f2fs_seek_block to support SEEK_{DATA, HOLE} in llseek
authorChao Yu <chao2.yu@samsung.com>
Wed, 23 Apr 2014 06:10:24 +0000 (14:10 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 7 May 2014 01:21:57 +0000 (10:21 +0900)
commit267378d4de696d4397cd611e62957d19b2a61357
treefdcc2b128e16060b5b451f9b8405a424534f7b17
parent2163d19815b3dfdb243cee2de2478ae7efce1942
f2fs: introduce f2fs_seek_block to support SEEK_{DATA, HOLE} in llseek

In This patch we introduce f2fs_seek_block to support SEEK_{DATA,HOLE} of
lseek(2).

change log from v1:
 o fix bug when lseek from middle of page and fix wrong calculation of
PGOFS_OF_NEXT_DNODE macro.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/file.c