nilfs2: always set back pointer to host inode in mapping->host
In the current nilfs, page cache for btree nodes and meta data files do not set a valid back pointer to the host inode in mapping->host. This will change it so that every address space in nilfs uses mapping->host to hold its host inode. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
@@ -80,12 +80,6 @@ static inline struct inode *NILFS_BTNC_I(struct address_space *btnc)
|
||||
return &ii->vfs_inode;
|
||||
}
|
||||
|
||||
static inline struct inode *NILFS_AS_I(struct address_space *mapping)
|
||||
{
|
||||
return (mapping->host) ? :
|
||||
container_of(mapping, struct inode, i_data);
|
||||
}
|
||||
|
||||
/*
|
||||
* Dynamic state flags of NILFS on-memory inode (i_state)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user