On Tue, Apr 22, 2008 at 12:07:01PM +1000, Barry Naujok wrote: >> What about just using kmalloc here? We know the length of the name >> anyway, so there is no point of allocating the maximum possible size. > > Not with the CI/NLS, the length could be different. Well, even then we know the length to allocate because it needs to be passed up in the nls_name. For the utf8 case the allocated space for the string might just be different from the number of characters. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html