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)
commitd745a8c20c1f864c10ca78d0f89219633861b7e9
treec61f4f25b8bf4f25c30d8bc7933645b49387649f
parentcd2c080c33fdab4ecf5ad43c88be0d3b646d272b
ext4: reduce contention on s_orphan_lock

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