Fix build for BGL ION kernel (2.4.19) which doesn't declare the quota stuff
even internally. Obvious solutions like removing #ifndef (__KERNEL__) caused
newer kernel builds to fail because of duplicate declarations, and just
checking the LINUX_VERSION_CODE directly caused problems for liblustre.
};
#ifndef __KERNEL__
+#define NEED_QUOTA_DEFS
+#else
+# if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,21)
+# define NEED_QUOTA_DEFS
+# endif
+#endif
+#ifdef NEED_QUOTA_DEFS
#ifndef QUOTABLOCK_BITS
#define QUOTABLOCK_BITS 10
#endif