Skip to content

Commit

Permalink
[PATCH] NTFS: Critical bug fix (affects MIPS and possibly others)
Browse files Browse the repository at this point in the history
Many thanks to Pauline Ng for the detailed bug report and analysis!

Signed-off-by: Anton Altaparmakov <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Anton Altaparmakov authored and Linus Torvalds committed Jun 22, 2006
1 parent 5d2170a commit f893afb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions fs/ntfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit f893afb

Please sign in to comment.