summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/xattr.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-12-05 16:01:20 +0100
committerRichard Weinberger <richard@nod.at>2018-01-17 21:48:05 +0100
commitf78e5623f45bab2b726eec29dc5cefbbab2d0b1c (patch)
tree32d2b9ffe720942ad71deb8f1a58201cb6d5ac51 /fs/ubifs/xattr.c
parent252153ba518ac0bcde6b7152c63380d4415bfe5d (diff)
downloadlinux-f78e5623f45bab2b726eec29dc5cefbbab2d0b1c.tar.gz
linux-f78e5623f45bab2b726eec29dc5cefbbab2d0b1c.tar.bz2
linux-f78e5623f45bab2b726eec29dc5cefbbab2d0b1c.zip
ubi: fastmap: Erase outdated anchor PEBs during attach
The fastmap update code might erase the current fastmap anchor PEB in case it doesn't find any new free PEB. When a power cut happens in this situation we must not have any outdated fastmap anchor PEB on the device, because that would be used to attach during next boot. The easiest way to make that sure is to erase all outdated fastmap anchor PEBs synchronously during attach. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Richard Weinberger <richard@nod.at> Fixes: dbb7d2a88d2a ("UBI: Add fastmap core") Cc: <stable@vger.kernel.org> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/xattr.c')
0 files changed, 0 insertions, 0 deletions