Well we can pass in NULL for the while, get the old behaviour.
But yes, I'd prefer to only ever use the get_block() value. It's
really messy though - things like deferring the check of the aligment
of all the iovec segments until we've run get_block...
Maybe we should ask the caller to pass in the alignment itself,
just 512, 2048, etc?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
In XFS case, if it does not know what the bdev is, how would the caller
know the alignment ?
If we really *really* want to use "bdev" from get_block(), we can
do a dummy get_block(..., 0, READ) upfront and use the "bdev".
Its UGLY but ..
- Badari