diff options
author | Josef Bacik <josef@redhat.com> | 2011-07-18 19:21:36 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-21 02:47:56 +0200 |
commit | b26751575a9aa55fd6dbf3febde3ff06dfadc44f (patch) | |
tree | 78fc36a92757eafb90bbeae36495adb369fbf6d7 /fs/block_dev.c | |
parent | fs: add SEEK_HOLE and SEEK_DATA flags (diff) | |
download | linux-b26751575a9aa55fd6dbf3febde3ff06dfadc44f.tar.xz linux-b26751575a9aa55fd6dbf3febde3ff06dfadc44f.zip |
Btrfs: implement our own ->llseek
In order to handle SEEK_HOLE/SEEK_DATA we need to implement our own llseek.
Basically for the normal SEEK_*'s we will just defer to the generic helper, and
for SEEK_HOLE/SEEK_DATA we will use our fiemap helper to figure out the nearest
hole or data. Currently this helper doesn't check for delalloc bytes for
prealloc space, so for now treat prealloc as data until that is fixed. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions