search for: search_ioctl

Displaying 1 result from an estimated 1 matches for "search_ioctl".

2010 Dec 14
0
[PATCH] BTRFS_IOC_TREE_SEARCH: store and use the last key found
...else if (key->objectid < (u64)-1 && key->objectid < sk- >max_objectid) { - key->offset = 0; - key->type = 0; + key->offset = sk->min_offset; + key->type = sk->min_type; key->objectid++; } else ret = 1; @@ -1180,9 +1180,9 @@ static noinline int search_ioctl(struct inode *inode, } } - key.objectid = sk->min_objectid; - key.type = sk->min_type; - key.offset = sk->min_offset; + key.objectid = max(sk->start_objectid, sk->min_objectid); + key.type = max(sk->start_type,sk->min_type); + key.offset = max(sk->start_offset, sk-&gt...