mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:00:53 +07:00
btrfs: Make btrfs_remove_delayed_node take btrfs_inode
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
4ccb5c7231
commit
f48d1cf59c
@ -1286,15 +1286,15 @@ int btrfs_commit_inode_delayed_inode(struct inode *inode)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void btrfs_remove_delayed_node(struct inode *inode)
|
||||
void btrfs_remove_delayed_node(struct btrfs_inode *inode)
|
||||
{
|
||||
struct btrfs_delayed_node *delayed_node;
|
||||
|
||||
delayed_node = READ_ONCE(BTRFS_I(inode)->delayed_node);
|
||||
delayed_node = READ_ONCE(inode->delayed_node);
|
||||
if (!delayed_node)
|
||||
return;
|
||||
|
||||
BTRFS_I(inode)->delayed_node = NULL;
|
||||
inode->delayed_node = NULL;
|
||||
btrfs_release_delayed_node(delayed_node);
|
||||
}
|
||||
|
||||
|
@ -121,7 +121,7 @@ void btrfs_balance_delayed_items(struct btrfs_fs_info *fs_info);
|
||||
int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
|
||||
struct inode *inode);
|
||||
/* Used for evicting the inode. */
|
||||
void btrfs_remove_delayed_node(struct inode *inode);
|
||||
void btrfs_remove_delayed_node(struct btrfs_inode *inode);
|
||||
void btrfs_kill_delayed_inode_items(struct btrfs_inode *inode);
|
||||
int btrfs_commit_inode_delayed_inode(struct inode *inode);
|
||||
|
||||
|
@ -5395,7 +5395,7 @@ void btrfs_evict_inode(struct inode *inode)
|
||||
btrfs_end_transaction(trans);
|
||||
btrfs_btree_balance_dirty(fs_info);
|
||||
no_delete:
|
||||
btrfs_remove_delayed_node(inode);
|
||||
btrfs_remove_delayed_node(BTRFS_I(inode));
|
||||
clear_inode(inode);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user