search for: key_search

Displaying 4 results from an estimated 4 matches for "key_search".

Did you mean: ed_search
2013 Aug 29
23
[PATCH] Btrfs: optimize key searches in btrfs_search_slot
...c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 5fa521b..5b20eec 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -2426,6 +2426,59 @@ done: return ret; } +static int key_search(struct extent_buffer *b, struct btrfs_key *key, + int level, int *prev_cmp, int *slot) +{ + unsigned long eb_offset = 0; + unsigned long len_left = b->len; + char *kaddr = NULL; + unsigned long map_start = 0; + unsigned long map_len = 0; + unsigned long offset; + struct btrfs_disk_key *k...
2014 Jul 11
0
ANNOUNCE: cifs-utils release 6.4 ready for download
...eded initialization of "len" in key_add] Signed-off-by: Sebastian Krahmer <krahmer at suse.de> commit 3da4c43b575498be86c87a2ac3f3142e3cab1c59 Author: Jeff Layton <jlayton at samba.org> Date: Sun Apr 20 20:41:05 2014 -0400 cifscreds: better error handling when key_search fails If we ended up getting a bogus string that would have overflowed, then make key_search set errno to EINVAL before returning. The callers can then test to see if the returned error is what was expected or something else and handle it appropriately. Cc: Sebastian K...
2013 Nov 15
7
Subvolume creation returns file exists
...is a high level traceback of the problem: ioctl.c:create_subvol() returns -EEXIST cgroup.c:btrfs_qgroup_inherit() returns -EEXIST qgroup.c:add_qgroup_item() returns -EEXIST ctree.c:btrfs_insert_empty_item() returns -EEXIST ctree.c:btrfs_search_slot() returns 0 ctree.c:key_search() returns 0 The problem appeared before our current kernel, which is a 3.8 version (along with Btrfs progs v0.19), however mounting an already broken filesystem in a 3.12 kernel (with Btrfs progs v0.20-rc1-358-g194aa4a) doesn''t do any better. Any thoughts on this? We can provide you w...
2012 Jan 28
0
ANNOUNCE: cifs-utils release 5.3 is ready for download
...ayload from userspace. That will be proposed in a separate kernel patch. Signed-off-by: Jeff Layton <jlayton at samba.org> commit aed556765b5b7c42cee5107ab7fd657732e15df8 Author: Jeff Layton <jlayton at samba.org> Date: Tue Jan 17 16:35:55 2012 -0500 cifscreds: make key_search use keyctl_search ...which is much more efficient than walking the keyring by hand. Signed-off-by: Jeff Layton <jlayton at samba.org> commit a4e917e6b365414a963fb4f25e7be5d75e12b832 Author: Jeff Layton <jlayton at samba.org> Date: Tue Jan 17 16:35:55 2012 -0500...