[1/2] Btrfs: fix search_ioctl key advance
diff mbox

Message ID 1268697746-16300-1-git-send-email-sage@newdream.net
State Accepted
Headers show

Commit Message

Sage Weil March 16, 2010, 12:02 a.m. UTC
None

Patch
diff mbox

diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index e4397a6..f06e8fa 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1021,7 +1021,7 @@  static noinline int copy_to_sk(struct btrfs_root *root,
 advance_key:
 	if (key->offset < (u64)-1)
 		key->offset++;
-	else if (key->type < (u64)-1)
+	else if (key->type < (u8)-1)
 		key->type++;
 	else if (key->objectid < (u64)-1)
 		key->objectid++;