diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-04-28 18:12:36 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-07 10:21:57 +0900 |
commit | 7f7670fe9fe47e7e56db658eb8831febe47627f2 (patch) | |
tree | 17c349d23d99166cbf91753703a240b97c64cb1c /kernel/compat.c | |
parent | fe369bc8ba205537864cb86ba08b390ad20201c4 (diff) |
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 'kernel/compat.c')
0 files changed, 0 insertions, 0 deletions