<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/md/bitmap.c, branch v2.6.38</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.38</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.38'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2011-01-13T22:14:34Z</updated>
<entry>
<title>md: Don't let implementation detail of curr_resync leak out through sysfs.</title>
<updated>2011-01-13T22:14:34Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2011-01-13T22:14:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=75d3da43cb74d2e5fb87816dbfecb839cd97c7f4'/>
<id>urn:sha1:75d3da43cb74d2e5fb87816dbfecb839cd97c7f4</id>
<content type='text'>
mddev-&gt;curr_resync has artificial values of '1' and '2' which are used
by the code which ensures only one resync is happening at a time on
any given device.

These values are internal and should never be exposed to user-space
(except when translated appropriately as in the 'pending' status in
/proc/mdstat).

Unfortunately they are as -&gt;curr_resync is assigned to
-&gt;curr_resync_completed and that value is directly visible through
sysfs.

So change the assignments to -&gt;curr_resync_completed to get the same
valued from elsewhere in a form that doesn't have the magic '1' or '2'
values.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
<entry>
<title>md: separate meta and data devs</title>
<updated>2011-01-13T22:14:34Z</updated>
<author>
<name>Jonathan Brassow</name>
<email>jbrassow@redhat.com</email>
</author>
<published>2011-01-13T22:14:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a6ff7e089c7fca813c956ccbed824087e89a3a49'/>
<id>urn:sha1:a6ff7e089c7fca813c956ccbed824087e89a3a49</id>
<content type='text'>
Allow the metadata to be on a separate device from the
data.

This doesn't mean the data and metadata will by on separate
physical devices - it simply gives device-mapper and userspace
tools more flexibility.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
<entry>
<title>md-new-param-to_sync_page_io</title>
<updated>2011-01-13T22:14:33Z</updated>
<author>
<name>Jonathan Brassow</name>
<email>jbrassow@redhat.com</email>
</author>
<published>2011-01-13T22:14:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ccebd4c4159462c96397ae9af9c667bb394d7b70'/>
<id>urn:sha1:ccebd4c4159462c96397ae9af9c667bb394d7b70</id>
<content type='text'>
Add new parameter to 'sync_page_io'.

The new parameter allows us to distinguish between metadata and data
operations.  This becomes important later when we add the ability to
use separate devices for data and metadata.

Signed-off-by: Jonathan Brassow &lt;jbrassow@redhat.com&gt;
</content>
</entry>
<entry>
<title>md: unplug writes to external bitmaps.</title>
<updated>2010-10-29T05:40:32Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2010-10-27T04:37:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=be2a2656eef95c32ca73e7a6a8c85671aa92e3f1'/>
<id>urn:sha1:be2a2656eef95c32ca73e7a6a8c85671aa92e3f1</id>
<content type='text'>
When writing to an 'external' bitmap we don't currently unplug the
device before waiting, so we can get a 3msec delay each time;
So use REQ_UNPLUG to force and unplug.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
<entry>
<title>md: change type of first arg to sync_page_io.</title>
<updated>2010-10-28T06:36:11Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2010-10-27T04:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2b193363ef68667ad717a6723165e0dccf99470f'/>
<id>urn:sha1:2b193363ef68667ad717a6723165e0dccf99470f</id>
<content type='text'>
Currently sync_page_io takes a 'bdev'.
Every caller passes 'rdev-&gt;bdev'.
We will soon want another field out of the rdev in sync_page_io,
So just pass the rdev instead of the bdev out of it.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
<entry>
<title>md: use sector_t in bitmap_get_counter</title>
<updated>2010-10-28T06:32:26Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2010-10-18T23:03:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=57dab0bdf689d42972975ec646d862b0900a4bf3'/>
<id>urn:sha1:57dab0bdf689d42972975ec646d862b0900a4bf3</id>
<content type='text'>
bitmap_get_counter returns the number of sectors covered
by the counter in a pass-by-reference variable.
In some cases this can be very large, so make it a sector_t
for safety.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;

</content>
</entry>
<entry>
<title>md: check return code of read_sb_page</title>
<updated>2010-10-07T01:02:50Z</updated>
<author>
<name>Vasiliy Kulikov</name>
<email>segooon@gmail.com</email>
</author>
<published>2010-10-01T21:18:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5c04f5512f8134c75cd36e5b0354e10e330f4e6e'/>
<id>urn:sha1:5c04f5512f8134c75cd36e5b0354e10e330f4e6e</id>
<content type='text'>
Function read_sb_page may return ERR_PTR(...). Check for it.

Signed-off-by: Vasiliy Kulikov &lt;segooon@gmail.com&gt;
Cc: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
<entry>
<title>md: resolve confusion of MD_CHANGE_CLEAN</title>
<updated>2010-08-30T08:06:21Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2010-08-30T07:33:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=070dc6dd7103b6b3f7e4d46e754354a5c15f366e'/>
<id>urn:sha1:070dc6dd7103b6b3f7e4d46e754354a5c15f366e</id>
<content type='text'>
MD_CHANGE_CLEAN is used for two different purposes and this leads to
confusion.
One of the purposes is largely mirrored by MD_CHANGE_PENDING which is
not used for anything else, so have MD_CHANGE_PENDING take over that
purpose fully.

The two purposes are:
 1/ tell md_update_sb that an update is needed and that it is just a
   clean/dirty transition.
 2/ tell user-space that an transition from clean to dirty is pending
    (something wants to write), and tell te kernel (by clearin the
    flag) that the transition is OK.

The first purpose remains wit MD_CHANGE_CLEAN, the second is moved
fully to MD_CHANGE_PENDING.

This means that various places which conditionally set or cleared
MD_CHANGE_CLEAN no longer need to be conditional.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
<entry>
<title>md/bitmap:  separate out loading a bitmap from initialising the structures.</title>
<updated>2010-07-26T03:21:34Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2010-06-01T09:37:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=69e51b449d383e97b1b9f890f8378c96e9e17346'/>
<id>urn:sha1:69e51b449d383e97b1b9f890f8378c96e9e17346</id>
<content type='text'>
dm makes this distinction between -&gt;ctr and -&gt;resume, so we need to
too.

Also get the new bitmap_load to clear out the bitmap first, as this is
most consistent with the dm suspend/resume approach

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
<entry>
<title>md/bitmap: prepare for storing write-intent-bitmap via dm-dirty-log.</title>
<updated>2010-07-26T03:21:34Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2010-06-01T09:37:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e384e58549a2e9a83071ad80280c1a9053cfd84c'/>
<id>urn:sha1:e384e58549a2e9a83071ad80280c1a9053cfd84c</id>
<content type='text'>
This allows md/raid5 to fully work as a dm target.

Normally md uses a 'filemap' which contains a list of pages of bits
each of which may be written separately.
dm-log uses and all-or-nothing approach to writing the log, so
when using a dm-log, -&gt;filemap is NULL and the flags normally stored
in filemap_attr are stored in -&gt;logattrs instead.



Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
</entry>
</feed>
