nilfs2: get rid of sget use for acquiring nilfs object
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 7 Jun 2009 16:39:29 +0000 (01:39 +0900)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:17 +0000 (21:36 -0400)
commit33c8e57c86d1bd1548c12a4f7c4bceb94b862cca
tree8e2052a81dc1036e64d78da1082ab6af01ae4bbd
parent81fc20bd0e75ba6357bce2403767d7c2585d8f28
nilfs2: get rid of sget use for acquiring nilfs object

This will change the way to obtain nilfs object in nilfs_get_sb()
function.

Previously, a preliminary sget() call was performed, and the nilfs
object was acquired from a super block instance found by the sget()
call.

This patch, instead, instroduces a new dedicated function
find_or_create_nilfs(); as the name implies, the function finds an
existent nilfs object from a global list or creates a new one if no
object is found on the device.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nilfs2/super.c
fs/nilfs2/the_nilfs.c
fs/nilfs2/the_nilfs.h