diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-28 21:03:10 +0200 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-28 22:19:56 +0200 |
commit | fb3b504adeee942e55393396fea8fdf406acf037 (patch) | |
tree | 42486eb1c674ba2d76b719109e21a54a7df7b8fc /fs/xfs/xfs_inode.c | |
parent | xfs: fix might_sleep() warning when initialising per-ag tree (diff) | |
download | linux-fb3b504adeee942e55393396fea8fdf406acf037.tar.xz linux-fb3b504adeee942e55393396fea8fdf406acf037.zip |
xfs: fix access to upper inodes without inode64
If a filesystem is mounted without the inode64 mount option we
should still be able to access inodes not fitting into 32 bits, just
not created new ones. For this to work we need to make sure the
inode cache radix tree is initialized for all allocation groups, not
just those we plan to allocate inodes from. This patch makes sure
we initialize the inode cache radix tree for all allocation groups,
and also cleans xfs_initialize_perag up a bit to separate the
inode32 logical from the general perag structure setup.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 8cd6e8d8fe9c..6ba7765026f6 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -2649,8 +2649,6 @@ xfs_iflush_cluster( int i; pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino)); - ASSERT(pag->pagi_inodeok); - ASSERT(pag->pag_ici_init); inodes_per_cluster = XFS_INODE_CLUSTER_SIZE(mp) >> mp->m_sb.sb_inodelog; ilist_size = inodes_per_cluster * sizeof(xfs_inode_t *); |