Displaying 5 results from an estimated 5 matches for "comp_keys".
2009 Jul 23
1
[PATCH] Remove code duplication in comp_keys
comp_keys is duplicating what is done in btrfs_comp_cpu_keys, so just
call it.
Signed-off-by: Diego Calleja <diegocg@gmail.com>
---
fs/btrfs/ctree.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
Index: linux/fs/btrfs/ctree.c
==================================================...
2005 Oct 25
2
centos 4.2 with reiserfs
...1: warning: return from incompatible pointer type
fs/reiserfs/stree.c:376: warning: return from incompatible pointer type
fs/reiserfs/stree.c:377: warning: return from incompatible pointer type
fs/reiserfs/stree.c: In function `key_in_buffer':
fs/reiserfs/stree.c:399: warning: passing arg 1 of `comp_keys' from incompatible
pointer type
fs/reiserfs/stree.c:403: warning: passing arg 1 of `comp_keys' from incompatible
pointer type
make[2]: *** [fs/reiserfs/stree.o] Error 1
make[1]: *** [fs/reiserfs] Error 2
make: *** [fs] Error 2
2014 Sep 16
0
3.14.18 btrfs_set_item_key_safe BUG
...struct btrfs_key *new_key)
{
struct btrfs_disk_key disk_key;
struct extent_buffer *eb;
int slot;
eb = path->nodes[0];
slot = path->slots[0];
if (slot > 0) {
btrfs_item_key(eb, &disk_key, slot - 1);
BUG_ON(comp_keys(&disk_key, new_key) >= 0);
}
if (slot < btrfs_header_nritems(eb) - 1) {
btrfs_item_key(eb, &disk_key, slot + 1);
BUG_ON(comp_keys(&disk_key, new_key) <= 0); <---
}
Full backtrace:
kernel BUG at /home/apw/COD/linux/fs/...
2013 Aug 29
23
[PATCH] Btrfs: optimize key searches in btrfs_search_slot
...ap_len);
+ len_left -= len;
+ eb_offset += len;
+ if (k)
+ continue;
+ if (!err) {
+ k = (struct btrfs_disk_key *)(kaddr + offset -
+ map_start);
+ } else {
+ read_extent_buffer(b, &unaligned,
+ offset, sizeof(unaligned));
+ k = &unaligned;
+ }
+ }
+
+ BUG_ON(comp_keys(k, key) != 0);
+ *slot = 0;
+
+ return 0;
+}
+
/*
* look for key in the tree. path is filled in with nodes along the way
* if key is found, we return zero and you can find the item in the leaf
@@ -2454,6 +2507,7 @@ int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
in...
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all,
I decided to check the responsiveness of the pure Ruby vs C extension
versions of win32-changenotify. I setup this little file generator program:
a = []
10.times{ |n|
a << Thread.new{
File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" }
}
}
a.each{ |t| t.join }
The pure Ruby version did not do so well. In some cases it