]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: add SEEK_HOLE/SEEK_DATA support
authorZheng Liu <wenqing.lz@taobao.com>
Wed, 19 Sep 2012 19:24:40 +0000 (15:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 19 Sep 2012 19:24:40 +0000 (15:24 -0400)
commitce894ca9ac097f4d7bbd497141ff7456853a8491
tree3151dde45d2186ed678c9a1222db281a83d2cf5f
parentae71b953b86d3c422ddc7f64d0f720b4e5a04ac0
ext4: add SEEK_HOLE/SEEK_DATA support

This patch makes ext4 really support SEEK_DATA/SEEK_HOLE flags.  Extent-based
and block-based files are implemented together because ext4_map_blocks hides
this difference.

CC: Hugh Dickins <hughd@google.com>
CC: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/file.c
fs/ext4/indirect.c