X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=compat%2Finclude%2Fbsdcompat.h;h=16de840c73d8531be3ee97aa5d1707911b21a1bd;hb=aa1b1e7f1a9c7201ba1ac4eb35921e2c9df26729;hp=881f50582b725fb65987aa08e0b7b58483740751;hpb=11856e771fadee7ddb9b5a613c91f562bf363da7;p=dump.git diff --git a/compat/include/bsdcompat.h b/compat/include/bsdcompat.h index 881f505..16de840 100644 --- a/compat/include/bsdcompat.h +++ b/compat/include/bsdcompat.h @@ -5,7 +5,7 @@ * Stelian Pop , 1999-2000 * Stelian Pop - AlcĂ´ve , 2000-2002 * - * $Id: bsdcompat.h,v 1.16 2002/01/16 09:32:14 stelian Exp $ + * $Id: bsdcompat.h,v 1.17 2002/06/10 14:05:00 stelian Exp $ */ #include @@ -36,7 +36,8 @@ #define powerof2(x) ((((x)-1)&(x))==0) #define dbtob(b) ((unsigned)(b) << DEV_BSHIFT) -#define fsbtodb(sb,b) ((int)(((long long)b * EXT2_BLOCK_SIZE(sb->super)) / DEV_BSIZE)) +#define fsbtodb(sb,b) ((int)(((long long)(b) * EXT2_BLOCK_SIZE((sb)->super)) / DEV_BSIZE)) +#define dbtofsb(sb,b) ((int)(((long long)(b) * DEV_BSIZE) / EXT2_BLOCK_SIZE((sb)->super))) #define sblock fs #define fs_fsize fragsize