X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fjffs2%2Fsummary.h;h=60207a2ae952777ee80445edddb9e57b8fc976e5;hb=6eb5c9db7a362503e6c5ebada6b898409cca4ce1;hp=8bf34f2fa5ce30b6f50f9d16de3ad5b9df31195e;hpb=f2e1d89f9b349b3cd914b7c6ec6368632f4ad048;p=~andy%2Flinux diff --git a/fs/jffs2/summary.h b/fs/jffs2/summary.h index 8bf34f2fa5c..60207a2ae95 100644 --- a/fs/jffs2/summary.h +++ b/fs/jffs2/summary.h @@ -13,6 +13,12 @@ #ifndef JFFS2_SUMMARY_H #define JFFS2_SUMMARY_H +/* Limit summary size to 64KiB so that we can kmalloc it. If the summary + is larger than that, we have to just ditch it and avoid using summary + for the eraseblock in question... and it probably doesn't hurt us much + anyway. */ +#define MAX_SUMMARY_SIZE 65536 + #include #include