Yes, from a CS point of view.
But practically cramfs is created once to contain some kind of
ROM for embedded devices. So if we never modify these data again,
why not creating it in the required byte order?
Why wasting kernel cycles for le<->be conversion? Just because
it's more general? For writable general purpose file systems it
makes sense, but to none of romfs, cramfs etc.
So I would prefer the given patch.
Regards
Ingo Oeser
-- Science is what we can tell a computer. Art is everything else. --- D.E.Knuth - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/