diff options
author | Joe Thornber <ejt@redhat.com> | 2014-03-03 19:37:24 +0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-03-28 00:56:23 +0400 |
commit | 428e4698642794444cdb26c148a827f22c28d546 (patch) | |
tree | cf554886d6d1f9434a58a3e139c5b7d4ee8a6ab5 /drivers/md/persistent-data/dm-bitset.h | |
parent | eec40579d84873dfb7021eb24c50360f073237c5 (diff) | |
download | linux-428e4698642794444cdb26c148a827f22c28d546.tar.xz |
dm bitset: only flush the current word if it has been dirtied
This change offers a big performance boost for dm-era.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/persistent-data/dm-bitset.h')
-rw-r--r-- | drivers/md/persistent-data/dm-bitset.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/persistent-data/dm-bitset.h b/drivers/md/persistent-data/dm-bitset.h index e1b9bea14aa1..c2287d672ef5 100644 --- a/drivers/md/persistent-data/dm-bitset.h +++ b/drivers/md/persistent-data/dm-bitset.h @@ -71,6 +71,7 @@ struct dm_disk_bitset { uint64_t current_bits; bool current_index_set:1; + bool dirty:1; }; /* |