summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-11-19 10:41:54 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-23 10:18:01 +0900
commitc11abd1a8075e428ecf5303359513b48193b29cd (patch)
tree71201566a736bec313d4123e1891c6e06327fec3 /fs/f2fs/super.c
parent971767caf632190f77a40b4011c19948232eed75 (diff)
downloadop-kernel-dev-c11abd1a8075e428ecf5303359513b48193b29cd.zip
op-kernel-dev-c11abd1a8075e428ecf5303359513b48193b29cd.tar.gz
f2fs: disable the extent cache ops on high fragmented files
The f2fs manages an extent cache to search a number of consecutive data blocks very quickly. However it conducts unnecessary cache operations if the file is highly fragmented with no valid extent cache. In such the case, we don't need to handle the extent cache, but just can disable the cache facility. Nevertheless, this patch gives one more chance to enable the extent cache. For example, 1. create a file 2. write data sequentially which produces a large valid extent cache 3. update some data, resulting in a fragmented extent 4. if the fragmented extent is too small, then drop extent cache 5. close the file 6. open the file again 7. give another chance to make a new extent cache 8. write data sequentially again which creates another big extent cache. ... Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/super.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud