Changes by: yura
Update of /cvs/linux-ntfs/ntfsprogs/include/ntfs
In directory delta357:/tmp/cvs-serv26130/include/ntfs
Modified Files:
support.h
Log Message:
Spent really a lot of time applying various "optimizations" from ntfs-3g and
finally figured out that ntfs-3g is faster than ntfsmount only because of
3 reasons:
1) turned on noatime option by default
2) ntfs-3g builds without debug output by default
3) the only real optimization: almost always add resident attributes.
However by accident patch in ntfs-3g for 3) breaks several code paths (why
I am not surprised?), thus I rewrote whole ntfs_attr_add() logic.
Index: support.h
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/include/ntfs/support.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- support.h 1 Nov 2006 13:30:40 -0000 1.14
+++ support.h 9 Nov 2006 21:19:12 -0000 1.15
@@ -71,9 +71,9 @@
/*
* Round up and down @num to 2 in power of @order.
*/
-#define ROUND_UP(num,order) (((num) + ((1 << order) - 1)) & \
- ~((1 << order) - 1))
-#define ROUND_DOWN(num,order) ((num) & ~((1 << order) - 1))
+#define ROUND_UP(num,order) (((num) + ((1 << (order)) - 1)) & \
+ ~((1 << (order)) - 1))
+#define ROUND_DOWN(num,order) ((num) & ~((1 << (order)) - 1))
/*
* Simple bit operation macros. NOTE: These are NOT atomic.
|