<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/devices/block2mtd.c, branch linux-4.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-03-11T05:42:31Z</updated>
<entry>
<title>mtd: block2mtd: check device size</title>
<updated>2014-03-11T05:42:31Z</updated>
<author>
<name>Fabian Frederick</name>
</author>
<published>2014-03-06T10:04:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ea6d833a3fddcd1d60414d48f34c7f4fbe88608f'/>
<id>urn:sha1:ea6d833a3fddcd1d60414d48f34c7f4fbe88608f</id>
<content type='text'>
fixme applied : check device size is a multiple of erasesize.

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: block2mtd: Add mutex_destroy</title>
<updated>2014-03-11T05:42:21Z</updated>
<author>
<name>Fabian Frederick</name>
</author>
<published>2014-01-25T02:45:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4bed207cd0b2805b0afa3835a0803d2eb27cbc9e'/>
<id>urn:sha1:4bed207cd0b2805b0afa3835a0803d2eb27cbc9e</id>
<content type='text'>
mutex_destroy added on each device in block2mtd_exit and add_device failure

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: Move major number definitions to major.h</title>
<updated>2013-11-07T07:32:59Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2013-10-13T21:05:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f83c3838b9146b891d0405d3a83660e8f6aed02f'/>
<id>urn:sha1:f83c3838b9146b891d0405d3a83660e8f6aed02f</id>
<content type='text'>
This patch moves the char and block major number definitions
to major.h to be with the rest of the major numbers.
While doing this, include major.h in the files that need it.

Signed-off-by: Ezequiel Garcia &lt;ezequiel.garcia@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: Convert logging messages</title>
<updated>2013-08-05T19:47:17Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2013-04-19T17:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a1c06609b37c304c58f6d1d3b8e987edaf3391f3'/>
<id>urn:sha1:a1c06609b37c304c58f6d1d3b8e987edaf3391f3</id>
<content type='text'>
Use a more current logging style.

Convert homegrown ERROR/INFO macros to pr_&lt;level&gt;.
Convert homegrown parse_err macros to pr_err and
expand hidden flow control.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: block2mtd: throttle writes by calling balance_dirty_pages_ratelimited.</title>
<updated>2012-12-13T11:39:44Z</updated>
<author>
<name>NeilBrown</name>
</author>
<published>2012-12-12T08:32:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=031da73fca29ebba3eea5a512746e01d52e542cd'/>
<id>urn:sha1:031da73fca29ebba3eea5a512746e01d52e542cd</id>
<content type='text'>
If you create a block2mtd device that is larger than main memory,
and write to all of it, then lots of pages will be dirtied but
they will never be flushed out as nothing calls any variant of
balance_dirty_pages.

It would be nice to call set_page_dirty_balance(), but that isn't exported,
so just call balance_dirty_pages_ratelimited() directly.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: remove use of __devexit</title>
<updated>2012-11-22T10:07:03Z</updated>
<author>
<name>Bill Pemberton</name>
</author>
<published>2012-11-19T18:26:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=810b7e060c14110d8f580daaf77fab3a7d950483'/>
<id>urn:sha1:810b7e060c14110d8f580daaf77fab3a7d950483</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: block2mtd: fix recursive call of mtd_writev</title>
<updated>2012-06-01T19:23:19Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2012-05-23T22:17:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e24e32e2759348c9290404abad4f729f791bfad'/>
<id>urn:sha1:2e24e32e2759348c9290404abad4f729f791bfad</id>
<content type='text'>
The 'mtd_writev' interface calls the function assigned
to the '_write' field of a given mtd device if that is
not NULL. The block2mtd driver sets the '_writev' field
to the 'mtd_writev' function itself and thus causes a
endless loop.

This is caused by 1dbebd32562b3c2caeca35960e5cb00bfcc12900
(mtd: harmonize mtd_writev usage).

Remove the assignment from the block2mtd driver to fix the
issue.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: stable@kernel.org [3.3+]
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: block2mtd: page_read() never returns NULL</title>
<updated>2012-05-14T03:56:52Z</updated>
<author>
<name>Ryosuke Saito</name>
</author>
<published>2012-04-23T10:47:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=39a5d0b93c244f40ee2e1502e4870685b7dcc1fa'/>
<id>urn:sha1:39a5d0b93c244f40ee2e1502e4870685b7dcc1fa</id>
<content type='text'>
page_read() never returns NULL, so we can remove the NULL check here.

Signed-off-by: Ryosuke Saito &lt;raitosyo@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: move zero length verification to MTD API functions</title>
<updated>2012-03-26T23:32:19Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-02-06T11:27:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bcb1d238716d138c9e16347fc32b3c1ae006339e'/>
<id>urn:sha1:bcb1d238716d138c9e16347fc32b3c1ae006339e</id>
<content type='text'>
In many places in drivers we verify for the zero length, but this is very
inconsistent across drivers. This is obviously the right thing to do, though.
This patch moves the check to the MTD API functions instead and removes a lot
of duplication.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Reviewed-by: Shmulik Ladkani &lt;shmulik.ladkani@gmail.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: remove retlen zeroing duplication</title>
<updated>2012-03-26T23:29:34Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-02-06T10:39:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=834247ec7e281dee839fe4a04bc1bbf0c7395172'/>
<id>urn:sha1:834247ec7e281dee839fe4a04bc1bbf0c7395172</id>
<content type='text'>
The MTD API function now zero the 'retlen' parameter before calling
the driver's method — do not do this again in drivers. This removes
duplicated '*retlen = 0' assignent from the following methods:

    'mtd_point()'
    'mtd_read()'
    'mtd_write()'
    'mtd_writev()'
    'mtd_panic_write()'

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
</feed>
