patch-2.3.30 linux/include/linux/quota.h

Next file: linux/include/linux/quotaops.h
Previous file: linux/include/linux/pci.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/include/linux/quota.h linux/include/linux/quota.h
@@ -44,8 +44,8 @@
 /*
  * Convert diskblocks to blocks and the other way around.
  */
-#define dbtob(num) (num << 10)
-#define btodb(num) (num >> 10)
+#define dbtob(num) (num << BLOCK_SIZE_BITS)
+#define btodb(num) (num >> BLOCK_SIZE_BITS)
 
 /*
  * Convert count of filesystem blocks to diskquota blocks, meant

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)