|
@@ -509,9 +509,10 @@ static inline int
|
|
|
__do_cache_op(unsigned long start, unsigned long end)
|
|
__do_cache_op(unsigned long start, unsigned long end)
|
|
|
{
|
|
{
|
|
|
int ret;
|
|
int ret;
|
|
|
- unsigned long chunk = PAGE_SIZE;
|
|
|
|
|
|
|
|
|
|
do {
|
|
do {
|
|
|
|
|
+ unsigned long chunk = min(PAGE_SIZE, end - start);
|
|
|
|
|
+
|
|
|
if (signal_pending(current)) {
|
|
if (signal_pending(current)) {
|
|
|
struct thread_info *ti = current_thread_info();
|
|
struct thread_info *ti = current_thread_info();
|
|
|
|
|
|