ocfs2: split out ocfs2_prepare_orphan_dir() into locking and prep functions
authorMark Fasheh <mfasheh@suse.com>
Fri, 13 Aug 2010 22:15:18 +0000 (15:15 -0700)
committerTao Ma <tao.ma@oracle.com>
Wed, 8 Sep 2010 06:26:00 +0000 (14:26 +0800)
commitdd43bcde23c527f64897eef41aa1fed2c9905ea9
tree59a35711f0d21ef5198b6721e97a622b3e5f384d
parente49e27674d1dd2717ad90b21ece8f83102153315
ocfs2: split out ocfs2_prepare_orphan_dir() into locking and prep functions

We do this because ocfs2_create_inode_in_orphan() wants to order locking of
the orphan dir with respect to locking of the inode allocator *before*
making any changes to the directory.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/namei.c