]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix ordering of key field checks in btrfs_previous_item
authorYan Zheng <zheng.yan@oracle.com>
Fri, 24 Jul 2009 15:06:53 +0000 (11:06 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 24 Jul 2009 15:22:47 +0000 (11:22 -0400)
commit8d9b3f7262cc0df871725d67bd13790c71c57251
treeb8c144c52f2725fa05325f282d8d2e4edc2e7181
parent40f336992bdd8ccb0c47ad58746796ba69505af6
Btrfs: Fix ordering of key field checks in btrfs_previous_item

Check objectid of item before checking the item type, otherwise we may return
zero for a key that is actually too low.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c