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)
commite3a93c2db6410822aa24295c3874b44ba21730a8
tree8de41a37abc6497745d07506a0fb5174da61d7c1
parent198a1ca3b735986542c538e38b9499ffcaed7005
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