summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim2014-04-28 11:12:36 +0200
committerJaegeuk Kim2014-05-07 03:21:57 +0200
commit7f7670fe9fe47e7e56db658eb8831febe47627f2 (patch)
tree17c349d23d99166cbf91753703a240b97c64cb1c /fs/f2fs/f2fs.h
parentf2fs: return i_size if the hole is outside of i_size (diff)
downloadkernel-qcow2-linux-7f7670fe9fe47e7e56db658eb8831febe47627f2.tar.gz
kernel-qcow2-linux-7f7670fe9fe47e7e56db658eb8831febe47627f2.tar.xz
kernel-qcow2-linux-7f7670fe9fe47e7e56db658eb8831febe47627f2.zip
f2fs: consider fallocated space for SEEK_DATA
If an amount of data are allocated though fallocate and user writes a couple of data among the space, f2fs should return the data offset made by user when SEEK_DATA is requested. For example, (N: NEW_ADDR by fallocate, X: NEW_ADDR by user) 1) fallocate 0 ~ 10MB f -> N N N N N N N N N N N N ... N 2) write 4KB at 5MB offset f -> N N N N N X N N N N N N ... N 3) SEEK_DATA from 0 should return 5MB offset So, this patch adds a routine to search the first dirty page to handle that. Then, the SEEK_DATA flow skips NEW_ADDR offsets until any dirty page is found. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
0 files changed, 0 insertions, 0 deletions