]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: re-order ocfs2_empty_dir checks
authorMark Fasheh <mfasheh@suse.com>
Wed, 18 Feb 2009 19:41:38 +0000 (11:41 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 3 Apr 2009 18:39:17 +0000 (11:39 -0700)
commitae47996f5a78b29aab71bb33bcf388484d8a59ef
tree403d548a9be6a1e1ae8063a732d520a06defd83c
parent499c70cc654028b7f63118d246244060d632fa56
ocfs2: re-order ocfs2_empty_dir checks

ocfs2_empty_dir() is far more expensive than checking link count. Since both
need to be checked at the same time, we can improve performance by checking
link count first.

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