X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=fs%2Fjffs2%2Fsummary.h;h=60207a2ae952777ee80445edddb9e57b8fc976e5;hb=b8a0b8e94648179b92191e5cf4fd3c4379b31cc4;hp=8bf34f2fa5ce30b6f50f9d16de3ad5b9df31195e;hpb=37e58df30063e229ee5157f9d1c1fa1d749917c2;p=deliverable%2Flinux.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