Signed-off-by: David Sterba <dsterba@suse.com>
struct subvol_info *parent = NULL;
struct subvol_info *parent2 = NULL;
struct subvol_info *best_parent = NULL;
- __s64 tmp;
u64 best_diff = (u64)-1;
int i;
}
for (i = 0; i < sctx->clone_sources_count; i++) {
+ s64 tmp;
+
parent2 = get_parent(sctx, sctx->clone_sources[i]);
if (!parent2)
continue;
}
tmp = parent2->ctransid - parent->ctransid;
if (tmp < 0)
- tmp *= -1;
+ tmp = -tmp;
if (tmp < best_diff) {
if (best_parent) {
free(best_parent->path);