mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
partial revert of asynchronous inode delete
let the core of this one bake in -next as well, but leave some of the infrastructure in place. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
This commit is contained in:
parent
7c51d57e9d
commit
b32714ba29
1 changed files with 7 additions and 12 deletions
19
fs/inode.c
19
fs/inode.c
|
@ -1139,11 +1139,16 @@ EXPORT_SYMBOL(remove_inode_hash);
|
||||||
* I_FREEING is set so that no-one will take a new reference to the inode while
|
* I_FREEING is set so that no-one will take a new reference to the inode while
|
||||||
* it is being deleted.
|
* it is being deleted.
|
||||||
*/
|
*/
|
||||||
static void generic_delete_inode_async(void *data, async_cookie_t cookie)
|
void generic_delete_inode(struct inode *inode)
|
||||||
{
|
{
|
||||||
struct inode *inode = data;
|
|
||||||
const struct super_operations *op = inode->i_sb->s_op;
|
const struct super_operations *op = inode->i_sb->s_op;
|
||||||
|
|
||||||
|
list_del_init(&inode->i_list);
|
||||||
|
list_del_init(&inode->i_sb_list);
|
||||||
|
inode->i_state |= I_FREEING;
|
||||||
|
inodes_stat.nr_inodes--;
|
||||||
|
spin_unlock(&inode_lock);
|
||||||
|
|
||||||
security_inode_delete(inode);
|
security_inode_delete(inode);
|
||||||
|
|
||||||
if (op->delete_inode) {
|
if (op->delete_inode) {
|
||||||
|
@ -1167,16 +1172,6 @@ static void generic_delete_inode_async(void *data, async_cookie_t cookie)
|
||||||
destroy_inode(inode);
|
destroy_inode(inode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void generic_delete_inode(struct inode *inode)
|
|
||||||
{
|
|
||||||
list_del_init(&inode->i_list);
|
|
||||||
list_del_init(&inode->i_sb_list);
|
|
||||||
inode->i_state |= I_FREEING;
|
|
||||||
inodes_stat.nr_inodes--;
|
|
||||||
spin_unlock(&inode_lock);
|
|
||||||
async_schedule_special(generic_delete_inode_async, inode, &inode->i_sb->s_async_list);
|
|
||||||
}
|
|
||||||
|
|
||||||
EXPORT_SYMBOL(generic_delete_inode);
|
EXPORT_SYMBOL(generic_delete_inode);
|
||||||
|
|
||||||
static void generic_forget_inode(struct inode *inode)
|
static void generic_forget_inode(struct inode *inode)
|
||||||
|
|
Loading…
Reference in a new issue