X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=grading%2Fvm%2Fpage-merge-par.c;h=06209e8359b1e6cd9a251964dbee91338b6e0b98;hb=e2c7fa52b1352b6fe736050e30c3a9a9ad633307;hp=c602d160269e58786c2ebf3977b20a38be31f6e3;hpb=9f45770b97fc271a0cc70647aa42353d23faba34;p=pintos-anon diff --git a/grading/vm/page-merge-par.c b/grading/vm/page-merge-par.c index c602d16..06209e8 100644 --- a/grading/vm/page-merge-par.c +++ b/grading/vm/page-merge-par.c @@ -5,9 +5,12 @@ #else #include "posix-compat.h" #endif -#include "arc4.h" +#include "../lib/arc4.h" -#define CHUNK_SIZE (63 * 1024) /* Max file size. */ +/* This is the max file size for an older version of the Pintos + file system that had 126 direct blocks each pointing to a + single disk sector. We could raise it now. */ +#define CHUNK_SIZE (126 * 512) #define CHUNK_CNT 8 /* Number of chunks. */ #define DATA_SIZE (CHUNK_CNT * CHUNK_SIZE) /* Buffer size. */