]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: simplify remaining sget() use
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 7 Jun 2009 16:39:31 +0000 (01:39 +0900)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:18 +0000 (21:36 -0400)
commit918291af668aab3a6e4dbbd6e88784caba8a48bd
tree36e6ae2a095613be1c36e8828ee9471e60c09de6
parent6ca5b643972366733da63b779d9f816f1bef2325
nilfs2: simplify remaining sget() use

This simplifies the test function passed on the remaining sget()
callsite in nilfs.

Instead of checking mount type (i.e. ro-mount/rw-mount/snapshot mount)
in the test function passed to sget(), this patch first looks up the
nilfs_sb_info struct which the given mount type matches, and then
acquires the super block instance holding the nilfs_sb_info.

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/sb.h
fs/nilfs2/super.c
fs/nilfs2/the_nilfs.c
fs/nilfs2/the_nilfs.h