FS-Cache: Handle a write to the page immediately beyond the EOF marker
[pandora-kernel.git] / fs / fscache / page.c
index 3f7a59b..c9d52e1 100644 (file)
@@ -676,7 +676,7 @@ static void fscache_write_op(struct fscache_operation *_op)
                goto superseded;
        page = results[0];
        _debug("gang %d [%lx]", n, page->index);
-       if (page->index > op->store_limit) {
+       if (page->index >= op->store_limit) {
                fscache_stat(&fscache_n_store_pages_over_limit);
                goto superseded;
        }