SOURCES (LINUX_2_6_16): linux-2.6-ntfs_flush_dcache_pages.patch (N...
pluto
pluto at pld-linux.org
Thu Jun 22 00:15:34 CEST 2006
Author: pluto Date: Wed Jun 21 22:15:34 2006 GMT
Module: SOURCES Tag: LINUX_2_6_16
---- Log message:
- bug fix.
---- Files affected:
SOURCES:
linux-2.6-ntfs_flush_dcache_pages.patch (NONE -> 1.1.2.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/linux-2.6-ntfs_flush_dcache_pages.patch
diff -u /dev/null SOURCES/linux-2.6-ntfs_flush_dcache_pages.patch:1.1.2.1
--- /dev/null Thu Jun 22 00:15:34 2006
+++ SOURCES/linux-2.6-ntfs_flush_dcache_pages.patch Thu Jun 22 00:15:29 2006
@@ -0,0 +1,24 @@
+--- a/fs/ntfs/file.c
++++ b/fs/ntfs/file.c
+@@ -1484,14 +1484,15 @@ static inline void ntfs_flush_dcache_pag
+ unsigned nr_pages)
+ {
+ BUG_ON(!nr_pages);
++ /*
++ * Warning: Do not do the decrement at the same time as the call to
++ * flush_dcache_page() because it is a NULL macro on i386 and hence the
++ * decrement never happens so the loop never terminates.
++ */
+ do {
+- /*
+- * Warning: Do not do the decrement at the same time as the
+- * call because flush_dcache_page() is a NULL macro on i386
+- * and hence the decrement never happens.
+- */
++ --nr_pages;
+ flush_dcache_page(pages[nr_pages]);
+- } while (--nr_pages > 0);
++ } while (nr_pages > 0);
+ }
+
+ /**
================================================================
More information about the pld-cvs-commit
mailing list