diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 363e209679b604abdd6a9407e6b34227fa4e9f29..38a68863390a635654fdcf49335a4bab7e04c185 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1000,7 +1000,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++;