|
@@ -527,7 +527,10 @@ cont:
|
|
if (ret <= 0) {
|
|
if (ret <= 0) {
|
|
unsigned long clear_flags = EXTENT_DELALLOC |
|
|
unsigned long clear_flags = EXTENT_DELALLOC |
|
|
EXTENT_DEFRAG;
|
|
EXTENT_DEFRAG;
|
|
|
|
+ unsigned long page_error_op;
|
|
|
|
+
|
|
clear_flags |= (ret < 0) ? EXTENT_DO_ACCOUNTING : 0;
|
|
clear_flags |= (ret < 0) ? EXTENT_DO_ACCOUNTING : 0;
|
|
|
|
+ page_error_op = ret < 0 ? PAGE_SET_ERROR : 0;
|
|
|
|
|
|
/*
|
|
/*
|
|
* inline extent creation worked or returned error,
|
|
* inline extent creation worked or returned error,
|
|
@@ -538,6 +541,7 @@ cont:
|
|
clear_flags, PAGE_UNLOCK |
|
|
clear_flags, PAGE_UNLOCK |
|
|
PAGE_CLEAR_DIRTY |
|
|
PAGE_CLEAR_DIRTY |
|
|
PAGE_SET_WRITEBACK |
|
|
PAGE_SET_WRITEBACK |
|
|
|
|
+ page_error_op |
|
|
PAGE_END_WRITEBACK);
|
|
PAGE_END_WRITEBACK);
|
|
goto free_pages_out;
|
|
goto free_pages_out;
|
|
}
|
|
}
|