f2fs: use rw_semaphore for nat entry lock
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 4 Dec 2014 05:15:10 +0000 (21:15 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 4 Dec 2014 05:23:29 +0000 (21:23 -0800)
commit8b26ef98da3387eb57a8a5c1747c6e628948ee0c
tree3a36e9ee3b1483c049a91e32f7eda6e54f71e0fc
parent4634d71ed190c99e42ebee450f9a6897d20ee22c
f2fs: use rw_semaphore for nat entry lock

Previoulsy, we used rwlock for nat_entry lock.
But, now we have a lot of complex operations in set_node_addr.
(e.g., allocating kernel memories, handling radix_trees, and so on)

So, this patches tries to change spinlock to rw_semaphore to give CPUs to other
threads.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/node.c