diff options
| author | Josef Bacik <[email protected]> | 2018-12-03 15:20:29 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-12-17 13:51:46 +0000 |
| commit | d7baffdaf9f9df8c9715aa507e3be2f409347c74 (patch) | |
| tree | 58158397803e1a19f9fb44f8f9b82a696b75c792 /fs/btrfs/delayed-ref.h | |
| parent | btrfs: use PAGE_ALIGNED instead of open-coding it (diff) | |
| download | kernel-d7baffdaf9f9df8c9715aa507e3be2f409347c74.tar.gz kernel-d7baffdaf9f9df8c9715aa507e3be2f409347c74.zip | |
btrfs: add btrfs_delete_ref_head helper
We do this dance in cleanup_ref_head and check_ref_cleanup, unify it
into a helper and cleanup the calling functions.
Reviewed-by: Omar Sandoval <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/delayed-ref.h')
| -rw-r--r-- | fs/btrfs/delayed-ref.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/delayed-ref.h b/fs/btrfs/delayed-ref.h index 8e20c5cb5404..d2af974f68a1 100644 --- a/fs/btrfs/delayed-ref.h +++ b/fs/btrfs/delayed-ref.h @@ -261,7 +261,8 @@ static inline void btrfs_delayed_ref_unlock(struct btrfs_delayed_ref_head *head) { mutex_unlock(&head->mutex); } - +void btrfs_delete_ref_head(struct btrfs_delayed_ref_root *delayed_refs, + struct btrfs_delayed_ref_head *head); struct btrfs_delayed_ref_head *btrfs_select_ref_head( struct btrfs_delayed_ref_root *delayed_refs); |
