aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorZhao Lei <[email protected]>2015-01-20 15:11:40 +0800
committerChris Mason <[email protected]>2015-01-21 18:06:49 -0800
commit8d6738c1bd74a27ff6a5043c5211c7bff7745420 (patch)
tree5a62834b17957c5ec0bb274799864e4274a11eb6 /drivers/mtd/lpddr/lpddr_cmds.c
parentdc5f7a3bd820883793bb0d9789e938a34aa4da5f (diff)
Btrfs: Separate finding-right-mirror and writing-to-target's process in scrub_handle_errored_block()
In corrent code, code of finding-right-mirror and writing-to-target are mixed in logic, if we find a right mirror but failed in writing to target, it will treat as "hadn't found right block", and fill the target with sblock_bad. Actually, "failed in writing to target" does not mean "source block is wrong", this patch separate above two condition in logic, and do some cleanup to make code clean. Signed-off-by: Zhao Lei <[email protected]> Signed-off-by: Miao Xie <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions