From: Chris Mason Date: Thu, 18 Mar 2010 16:10:08 +0000 (-0400) Subject: Btrfs: fix key checks and advance in the search ioctl X-Git-Tag: v2.6.34-rc2~21^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abc6e1341bda974e2d0eddb75f57a20ac18e9b33;p=pandora-kernel.git Btrfs: fix key checks and advance in the search ioctl The search ioctl was working well for finding tree roots, but using it for generic searches requires a few changes to how the keys are advanced. This treats the search control min fields for objectid, type and offset more like a key, where we drop the offset to zero once we bump the type, etc. The downside of this is that we are changing the min_type and min_offset fields during the search, and so the ioctl caller needs extra checks to make sure the keys in the result are the ones it wanted. This also changes key_in_sk to use btrfs_comp_cpu_keys, just to make things more readable. Signed-off-by: Chris Mason --- Reading git-diff-tree failed