Please sign in to comment.
FS-Cache: Fix __fscache_uncache_all_inode_pages()'s outer loop
The compiler, at least for ix86 and m68k, validly warns that the comparison: next <= (loff_t)-1 is always true (and it's always true also for x86-64 and probably all other arches - as long as pgoff_t isn't wider than loff_t). The intention appears to be to avoid wrapping of "next", so rather than eliminating the pointless comparison, fix the loop to indeed get exited when "next" would otherwise wrap. On m68k the following warning is observed: fs/fscache/page.c: In function '__fscache_uncache_all_inode_pages': fs/fscache/page.c:979: warning: comparison is always false due to limited range of data type Reported-by: Geert Uytterhoeven <firstname.lastname@example.org> Reported-by: Jan Beulich <email@example.com> Signed-off-by: Jan Beulich <firstname.lastname@example.org> Signed-off-by: David Howells <email@example.com> Cc: Suresh Jayaraman <firstname.lastname@example.org> Cc: Geert Uytterhoeven <email@example.com> Cc: firstname.lastname@example.org Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...