From f4753f7d996ee590c796642483a2e81d83d762e1 Mon Sep 17 00:00:00 2001 From: Anton Altaparmakov Date: Thu, 22 Jun 2006 14:47:15 -0700 Subject: [PATCH] --- yaml --- r: 28560 b: refs/heads/master c: f893afbe1262e27e91234506f72e17716190dd2f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ntfs/file.c | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index c72c15bdb3aa..96308c94dd87 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5d2170ad1092b2940138dc3ae4a944d7bf87ae9e +refs/heads/master: f893afbe1262e27e91234506f72e17716190dd2f diff --git a/trunk/fs/ntfs/file.c b/trunk/fs/ntfs/file.c index c63a83e8da98..36e1e136bb0c 100644 --- a/trunk/fs/ntfs/file.c +++ b/trunk/fs/ntfs/file.c @@ -1484,14 +1484,15 @@ static inline void ntfs_flush_dcache_pages(struct page **pages, 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); } /**