]> git.baikalelectronics.ru Git - kernel.git/commit
md: beginnings of bad block management.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:46 +0000 (11:31 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:46 +0000 (11:31 +1000)
commitb2e92174116b70466d2efca4fa0e2fe28d393529
treefc45b727ad2e1a148e7d20f327b45a3afc474e9d
parent22083ba3fc1947f9ae19748898bb5a4364e4eb77
md: beginnings of bad block management.

This the first step in allowing md to track bad-blocks per-device so
that we can fail individual blocks rather than the whole device.

This patch just adds a data structure for recording bad blocks, with
routines to add, remove, search the list.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/md.c
drivers/md/md.h