X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fjffs2%2Fsummary.h;h=60207a2ae952777ee80445edddb9e57b8fc976e5;hb=dd38d298385cb054263e634cf94cf18dc3ae1fc1;hp=8bf34f2fa5ce30b6f50f9d16de3ad5b9df31195e;hpb=821f3eff7cdb9d6c7076effabd46c96c322daed1;p=karo-tx-linux.git diff --git a/fs/jffs2/summary.h b/fs/jffs2/summary.h index 8bf34f2fa5ce..60207a2ae952 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