]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Add total entry count to dx_root_block
authorMark Fasheh <mfasheh@suse.com>
Tue, 17 Feb 2009 23:29:35 +0000 (15:29 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 3 Apr 2009 18:39:16 +0000 (11:39 -0700)
commit06c3cdb3f9e15a273a121f7dd0fa6903d7117eee
tree8de41a37abc6497745d07506a0fb5174da61d7c1
parent0398ec6156035ba471e578481c7da08da34407ab
ocfs2: Add total entry count to dx_root_block

This little bit of extra accounting speeds up ocfs2_empty_dir()
dramatically by allowing us to short-circuit the full directory scan.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dir.c
fs/ocfs2/ocfs2_fs.h