|
@@ -1511,7 +1511,7 @@ void block_invalidatepage(struct page *page, unsigned int offset,
|
|
* The get_block cached value has been unconditionally invalidated,
|
|
* The get_block cached value has been unconditionally invalidated,
|
|
* so real IO is not possible anymore.
|
|
* so real IO is not possible anymore.
|
|
*/
|
|
*/
|
|
- if (offset == 0)
|
|
|
|
|
|
+ if (length == PAGE_SIZE)
|
|
try_to_release_page(page, 0);
|
|
try_to_release_page(page, 0);
|
|
out:
|
|
out:
|
|
return;
|
|
return;
|