]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: metadata clear dirty bits on clean shutdown
authorJoe Thornber <ejt@redhat.com>
Wed, 20 Mar 2013 17:21:27 +0000 (17:21 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 20 Mar 2013 17:21:27 +0000 (17:21 +0000)
commitf98dd88910e4bd6da8be05f898e551d87fc6b2fd
treedf0d78e16753fa399ce72a2fe0d28cb107ed3d98
parent76686c553dcc561e039e3ac2e60d7bfa91d50c9f
dm cache: metadata clear dirty bits on clean shutdown

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