JFS: Don't save agno in the inode
authorDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 20 Jun 2011 15:53:46 +0000 (10:53 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 20 Jun 2011 15:53:46 +0000 (10:53 -0500)
commitd31b53e3cd069e02290ed8a648aa8c7618d6fe77
tree529f1fab64d7b525e1a77510f3c9b02d24597c65
parent28e0fa894cd5996d3007ce82f07226f79beb7286
JFS: Don't save agno in the inode

Resizing the file system can result in an in-memory inode being remapped
to a different aggregate group (AG). A cached AG number can cause
problems when trying to free or allocate inodes. Instead, save the IAG's
agstart address and calculate the agno when we need it.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/file.c
fs/jfs/jfs_imap.c
fs/jfs/jfs_incore.h