f2fs: reduce redundant spin_lock operations
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 3 Apr 2013 13:19:03 +0000 (22:19 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 3 Apr 2013 13:19:03 +0000 (22:19 +0900)
commit49952fa182a2e9b3f40b974278c5b1144f0c918b
treed7c3ed17f9bf942749fcb836c112dabb7da35a21
parent1571f84a1f65f6bf35d99d59ba52bdee6722e4b6
f2fs: reduce redundant spin_lock operations

This patch reduces redundant spin_lock operations in alloc_nid_failed().
The alloc_nid_failed() does not need to delete entry and add one again
by triggering spin_lock and spin_unlock redundantly.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c