diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-04-20 03:26:02 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-06-10 18:26:17 +0200 |
commit | d4b804045924d7f8d2ea988be22c4b9e6492ec11 (patch) | |
tree | 9b866bbf41de8dfa612f1f50575b62f01f26cfae /fs/btrfs/ulist.h | |
parent | btrfs: qgroup: Cleanup the old ref_node-oriented mechanism. (diff) | |
download | linux-d4b804045924d7f8d2ea988be22c4b9e6492ec11.tar.xz linux-d4b804045924d7f8d2ea988be22c4b9e6492ec11.zip |
btrfs: ulist: Add ulist_del() function.
This function will delete unode with given (val,aux) pair.
And with this patch, seqnum for debug usage doesn't have any meaning
now, so remove them.
This is used by later patches to skip snapshot root.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ulist.h')
-rw-r--r-- | fs/btrfs/ulist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ulist.h b/fs/btrfs/ulist.h index 4c29db604bbe..a01a2c45825f 100644 --- a/fs/btrfs/ulist.h +++ b/fs/btrfs/ulist.h @@ -57,6 +57,7 @@ void ulist_free(struct ulist *ulist); int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask); int ulist_add_merge(struct ulist *ulist, u64 val, u64 aux, u64 *old_aux, gfp_t gfp_mask); +int ulist_del(struct ulist *ulist, u64 val, u64 aux); /* just like ulist_add_merge() but take a pointer for the aux data */ static inline int ulist_add_merge_ptr(struct ulist *ulist, u64 val, void *aux, |