summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ulist.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-04-20 09:26:02 +0800
committerChris Mason <clm@fb.com>2015-06-10 09:26:17 -0700
commitd4b804045924d7f8d2ea988be22c4b9e6492ec11 (patch)
tree9b866bbf41de8dfa612f1f50575b62f01f26cfae /fs/btrfs/ulist.h
parente69bcee37692f5d8c557335ddd2444cb4afe0005 (diff)
downloadop-kernel-dev-d4b804045924d7f8d2ea988be22c4b9e6492ec11.zip
op-kernel-dev-d4b804045924d7f8d2ea988be22c4b9e6492ec11.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ulist.h b/fs/btrfs/ulist.h
index 4c29db6..a01a2c4 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,
OpenPOWER on IntegriCloud