ext4: reduce contention on s_orphan_lock
authorJan Kara <jack@suse.cz>
Mon, 26 May 2014 15:56:53 +0000 (11:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2014 15:56:53 +0000 (11:56 -0400)
Shuffle code around in ext4_orphan_add() and ext4_orphan_del() so that
we avoid taking global s_orphan_lock in some cases and hold it for
shorter time in other cases.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c

diff --cc fs/ext4/namei.c
Simple merge