aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/the_nilfs.h
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-06-07 12:39:30 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:36:17 -0400
commit3f82ff55168e92859119bf348e9e0bd6714d2fea (patch)
treef35bf723b02d6fe8c101252aa4a2c0e0172fd4aa /fs/nilfs2/the_nilfs.h
parent33c8e57c86d1bd1548c12a4f7c4bceb94b862cca (diff)
nilfs2: get rid of sget use for checking if current mount is present
This stops using sget() for checking if an r/w-mount or an r/o-mount exists on the device. This elimination uses a back pointer to the current mount added to nilfs object. 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>
Diffstat (limited to 'fs/nilfs2/the_nilfs.h')
-rw-r--r--fs/nilfs2/the_nilfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nilfs2/the_nilfs.h b/fs/nilfs2/the_nilfs.h
index 116caf96e7f3..99f7e29a5335 100644
--- a/fs/nilfs2/the_nilfs.h
+++ b/fs/nilfs2/the_nilfs.h
@@ -50,6 +50,7 @@ enum {
50 * @ns_sem: semaphore for shared states 50 * @ns_sem: semaphore for shared states
51 * @ns_writer_mutex: mutex protecting ns_writer attach/detach 51 * @ns_writer_mutex: mutex protecting ns_writer attach/detach
52 * @ns_writer_refcount: number of referrers on ns_writer 52 * @ns_writer_refcount: number of referrers on ns_writer
53 * @ns_current: back pointer to current mount
53 * @ns_sbh: buffer heads of on-disk super blocks 54 * @ns_sbh: buffer heads of on-disk super blocks
54 * @ns_sbp: pointers to super block data 55 * @ns_sbp: pointers to super block data
55 * @ns_sbwtime: previous write time of super blocks 56 * @ns_sbwtime: previous write time of super blocks
@@ -98,6 +99,8 @@ struct the_nilfs {
98 struct mutex ns_writer_mutex; 99 struct mutex ns_writer_mutex;
99 atomic_t ns_writer_refcount; 100 atomic_t ns_writer_refcount;
100 101
102 struct nilfs_sb_info *ns_current;
103
101 /* 104 /*
102 * used for 105 * used for
103 * - loading the latest checkpoint exclusively. 106 * - loading the latest checkpoint exclusively.