16 May 17:30
[RFC 1/3] block: Context support
Saugata Das <saugata.das <at> stericsson.com>
2012-05-16 15:30:28 GMT
2012-05-16 15:30:28 GMT
From: Saugata Das <saugata.das <at> linaro.org> On eMMC and UFS devices there is a new feature of setting context with each read or write. The idea is to classify the data from different files and apply the realibility on the complete file instead of individual writes, which helps in performance. A new address space operation has been a added to get the context from file system and set up the bi_context field in bio. Then we need to ensure that bio from different contexts are not merged. The context is then passed to the underlying driver as part of the read or write request. Since the number of MMC contexts is limited, multiple file system contexts are mapped to single MMC context. Signed-off-by: Saugata Das <saugata.das <at> linaro.org> --- block/blk-core.c | 1 + block/blk-merge.c | 3 +++ fs/mpage.c | 12 ++++++++++++ include/linux/blk_types.h | 1 + include/linux/blkdev.h | 1 + include/linux/buffer_head.h | 2 ++ include/linux/fs.h | 1 + 7 files changed, 21 insertions(+), 0 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 1f61b74..274e05d 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1309,6 +1309,7 @@ void init_request_from_bio(struct request *req, struct bio *bio) req->errors = 0; req->__sector = bio->bi_sector;(Continue reading)
RSS Feed