nilfs2: set pointer to root object in inodes
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 25 Aug 2010 08:45:44 +0000 (17:45 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 23 Oct 2010 00:24:34 +0000 (09:24 +0900)
commit4d8d9293dce503eb0e083e17a02a328d397e7f00
treeffa2dce7f100b1346131adc01cf93e280b225509
parentba65ae4729bf81c58d9fc847f67d57eec525b042
nilfs2: set pointer to root object in inodes

This puts a pointer to nilfs_root object in the private part of
on-memory inode, and makes nilfs_iget function pick up the inode with
the same root object.

Non-root inodes inherit its nilfs_root object from parent inode.  That
of the root inode is allocated through nilfs_attach_checkpoint()
function.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/inode.c
fs/nilfs2/namei.c
fs/nilfs2/nilfs.h
fs/nilfs2/recovery.c
fs/nilfs2/super.c