Ryusuke Konishi f11459ad7d nilfs2: do not allocate multiple super block instances for a device
This stops allocating multiple super block instances for a device.

All snapshots and a current mode mount (i.e. latest tree) will be
controlled with nilfs_root objects that are kept within an sb
instance.

nilfs_get_sb() is rewritten so that it always has a root object for
the latest tree and snapshots make additional root objects.

The root dentry of the latest tree is binded to sb->s_root even if it
isn't attached on a directory.  Root dentries of snapshots or the
latest tree are binded to mnt->mnt_root on which they are mounted.

With this patch, nilfs_find_sbinfo() function, nilfs->ns_supers list,
and nilfs->ns_current back pointer, are deleted.  In addition,
init_nilfs() and load_nilfs() are simplified since they will be called
once for a device, not repeatedly called for mount points.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
2010-10-23 09:24:36 +09:00
..
2010-10-04 21:10:35 +02:00
2010-08-18 01:01:33 -04:00
2010-10-15 15:53:27 +02:00
2010-10-04 21:10:44 +02:00
2010-10-04 21:10:45 +02:00
2010-10-21 18:48:09 +02:00
2010-08-18 06:21:10 -04:00
2010-10-04 21:10:45 +02:00
2010-08-18 01:09:01 -04:00
2010-10-04 21:10:50 +02:00
2010-10-04 21:10:40 +02:00
2010-10-04 21:10:41 +02:00
2010-10-21 18:48:04 +02:00
2010-08-18 01:09:01 -04:00
2010-08-18 08:35:48 -04:00
2010-10-15 15:53:27 +02:00
2010-08-18 08:35:48 -04:00
2010-08-18 08:35:46 -04:00
2010-08-18 08:35:48 -04:00
2010-10-21 15:44:13 +02:00
2010-10-05 11:02:04 +02:00
2010-08-18 08:35:48 -04:00
2010-08-18 08:35:47 -04:00
2010-08-18 08:35:48 -04:00
2010-10-15 15:53:46 +02:00
2010-08-09 16:48:44 -04:00
2010-08-18 08:35:48 -04:00
2010-08-09 16:47:43 -04:00