If this is being caused by excessive hard links, wouldn't it be easier
to set some large but sane limit on the number of hard links allowed? A
limit of 1000 or so would probably allow all legitimate uses but safely
avoid any overflows. This would be easy to enforce in the link system
call.
Regards,
Bill