On Mon, Apr 28, 2008 at 10:10:07AM +0300, Adrian Hunter wrote:
These checks are if properly maintained not harmful for the code,
but they make the code less readable and there's of course the chance
that they get out of sync. That's why the term "not very nice" is
entirely apropinquate here.
Most of these checks are indeed generic. Those that arise from special
filesystem invariants like not having unmapped buffers due to
implementing ->page_mkwrite should for now be checked in the filesystem,
although I'd like to make sure this is true for all filesystems
long-term.
--