The standard non raw page cache does what you want.
Basically adding such things kills all the performance benefits raw may
have. If you want raw you should fix your application to use aligned buffers.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/