diff options
author | Sage Weil <sage@newdream.net> | 2010-03-15 20:02:25 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-03-16 14:24:27 -0400 |
commit | 854d2c3531e6d32e76b94ca5e096ea54c7497e40 (patch) | |
tree | 50775c23fe46b586b24294217e4eb81fbc0e8365 /fs/btrfs | |
parent | ef5780c018ed169a77b623f87c4ba52faa8ad0fe (diff) |
Btrfs: fix search_ioctl key advance
key->type is u8, not u64.
fs/btrfs/ioctl.c: In function 'copy_to_sk':
fs/btrfs/ioctl.c:1024: warning: comparison is always true due to limited range of data type
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 363e209679b6..38a68863390a 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, | |||
1000 | advance_key: | 1000 | advance_key: |
1001 | if (key->offset < (u64)-1) | 1001 | if (key->offset < (u64)-1) |
1002 | key->offset++; | 1002 | key->offset++; |
1003 | else if (key->type < (u64)-1) | 1003 | else if (key->type < (u8)-1) |
1004 | key->type++; | 1004 | key->type++; |
1005 | else if (key->objectid < (u64)-1) | 1005 | else if (key->objectid < (u64)-1) |
1006 | key->objectid++; | 1006 | key->objectid++; |