Commit 606aab8b authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: i_acl & i_default_acl are not being re-initialized

These fields were not being reset to JFS_ACL_NOT_CACHED when jfs_inode_info
was reused from the slab cache.
parent d72490ba
......@@ -105,10 +105,14 @@ static void jfs_destroy_inode(struct inode *inode)
}
#ifdef CONFIG_JFS_POSIX_ACL
if (ji->i_acl && (ji->i_acl != JFS_ACL_NOT_CACHED))
if (ji->i_acl != JFS_ACL_NOT_CACHED) {
posix_acl_release(ji->i_acl);
if (ji->i_default_acl && (ji->i_default_acl != JFS_ACL_NOT_CACHED))
ji->i_acl = JFS_ACL_NOT_CACHED;
}
if (ji->i_default_acl != JFS_ACL_NOT_CACHED) {
posix_acl_release(ji->i_default_acl);
ji->i_default_acl = JFS_ACL_NOT_CACHED;
}
#endif
kmem_cache_free(jfs_inode_cachep, ji);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment