summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/buffer_head_io.h
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2015-04-16 12:46:42 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 09:04:04 -0400
commit53a2c3bdf4132c2c9cc3581e15265fd962f34fa8 (patch)
treeef5c9ff41dd9adbc5dd1fcf6895159b9e559429c /fs/ocfs2/buffer_head_io.h
parentfa33915c92b43f5a4e95649f81303cc089b10dc6 (diff)
downloadblackbird-op-linux-53a2c3bdf4132c2c9cc3581e15265fd962f34fa8.tar.gz
blackbird-op-linux-53a2c3bdf4132c2c9cc3581e15265fd962f34fa8.zip
nilfs2: improve execution time of NILFS_IOCTL_GET_CPINFO ioctl
The older a filesystem gets, the slower lscp command becomes. This is because nilfs_cpfile_do_get_cpinfo() function meets more hole blocks as the start offset of valid checkpoint numbers gets bigger. This reduces the overhead by skipping hole blocks efficiently with nilfs_mdt_find_block() helper. A measurement result of this patch is as follows: Before: $ time lscp CNO DATE TIME MODE FLG BLKCNT ICNT 5769303 2015-02-22 19:31:33 cp - 108 1 5769304 2015-02-22 19:38:54 cp - 108 1 real 0m0.182s user 0m0.003s sys 0m0.180s After: $ time lscp CNO DATE TIME MODE FLG BLKCNT ICNT 5769303 2015-02-22 19:31:33 cp - 108 1 5769304 2015-02-22 19:38:54 cp - 108 1 real 0m0.003s user 0m0.001s sys 0m0.002s Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/buffer_head_io.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud