]> git.karo-electronics.de Git - karo-tx-linux.git/commit
When writing the dirty bitset to the metadata device on a clean
authorJoe Thornber <ejt@redhat.com>
Mon, 18 Mar 2013 22:57:29 +0000 (09:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Mar 2013 22:57:29 +0000 (09:57 +1100)
commit0b70520d2dd2d04345b2f47c09c8899af05ca3b6
treedf0d78e16753fa399ce72a2fe0d28cb107ed3d98
parent749a57da9cc56b7332f9fca7312989072d05f1ae
When writing the dirty bitset to the metadata device on a clean
shutdown, clear the dirty bits.  Previously they were left indicating
the cache was dirty. This led to confusion about whether there really
was dirty data in the cache or not.  (This was a harmless bug.)

Reported-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-cache-metadata.c