<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/fs/logfs/dev_mtd.c, branch v3.4.83</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/fs/logfs/dev_mtd.c?h=v3.4.83</id>
<link rel='self' href='https://git.amat.us/linux/atom/fs/logfs/dev_mtd.c?h=v3.4.83'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-02-01T19:10:24Z</updated>
<entry>
<title>mtd: fix merge conflict resolution breakage</title>
<updated>2012-02-01T19:10:24Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2012-02-01T19:10:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7d731019218e49a9811f6d0adec4b1cfcb752bed'/>
<id>urn:sha1:7d731019218e49a9811f6d0adec4b1cfcb752bed</id>
<content type='text'>
This patch fixes merge conflict resolution breakage introduced by merge
d3712b9dfcf4 ("Merge tag 'for-linus' of git://github.com/prasad-joshi/logfs_upstream").

The commit changed 'mtd_can_have_bb()' function and made it always
return zero, which is incorrect.  Instead, we need it to return whether
the underlying flash device can have bad eraseblocks or not.  UBI needs
this information because it affects how it handles the underlying flash.
E.g., if the underlying flash is NOR, it cannot have bad blocks and any
write or erase error is fatal, and all we can do is to switch to R/O
mode.  We do not need to reserve a pool of good eraseblocks for bad
eraseblocks handling, and so on.

This patch also removes 'mtd_can_have_bb()' invocations from Logfs to
ensure correct Logfs behavior.

I've tested that with this patch UBI works on top of NOR and NAND
flashes emulated by mtdram and nandsim correspondingly.

This patch is based on patch from Linus Torvalds.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Acked-by: Jörn Engel &lt;joern@logfs.org&gt;
Acked-by: Prasad Joshi &lt;prasadjoshi.linux@gmail.com&gt;
Acked-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>logfs: do not use 'mtd-&gt;block_isbad' directly</title>
<updated>2012-01-09T18:26:25Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2012-01-02T11:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d58b27ed58a30faf376e40d19945f34301944b8d'/>
<id>urn:sha1:d58b27ed58a30faf376e40d19945f34301944b8d</id>
<content type='text'>
Instead, use the new 'mtd_can_have_bb()' helper.

Cc: Jörn Engel &lt;joern@logfs.org&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: do not use mtd-&gt;sync directly</title>
<updated>2012-01-09T18:26:21Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2011-12-30T14:35:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=327cf2922b4edf0439b219469722d2a502e37349'/>
<id>urn:sha1:327cf2922b4edf0439b219469722d2a502e37349</id>
<content type='text'>
This patch teaches 'mtd_sync()' to do nothing when the MTD driver does
not have the '-&gt;sync()' method, which allows us to remove all direct
'mtd-&gt;sync' accesses.

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: introduce mtd_block_isbad interface</title>
<updated>2012-01-09T18:25:47Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2011-12-23T17:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7086c19d07429d697057587caf1e5e0345442d16'/>
<id>urn:sha1:7086c19d07429d697057587caf1e5e0345442d16</id>
<content type='text'>
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: introduce mtd_sync interface</title>
<updated>2012-01-09T18:25:35Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2011-12-23T17:03:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=85f2f2a809d658c15b574df02ede92090f45a1f2'/>
<id>urn:sha1:85f2f2a809d658c15b574df02ede92090f45a1f2</id>
<content type='text'>
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: introduce mtd_write interface</title>
<updated>2012-01-09T18:25:20Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2011-12-23T15:35:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=eda95cbf75193808f62948fb0142ba0901d8bee2'/>
<id>urn:sha1:eda95cbf75193808f62948fb0142ba0901d8bee2</id>
<content type='text'>
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: introduce mtd_read interface</title>
<updated>2012-01-09T18:25:19Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2011-12-23T15:30:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=329ad399a9b3adf52c90637b21ca029fcf7f8795'/>
<id>urn:sha1:329ad399a9b3adf52c90637b21ca029fcf7f8795</id>
<content type='text'>
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: introduce mtd_erase interface</title>
<updated>2012-01-09T18:25:11Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2011-12-23T13:25:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7e1f0dc0551b99acb5e8fa161a7ac401994d57d8'/>
<id>urn:sha1:7e1f0dc0551b99acb5e8fa161a7ac401994d57d8</id>
<content type='text'>
This patch is part of a patch-set which changes the MTD interface
from 'mtd-&gt;func()' form to 'mtd_func()' form. We need this because
we want to add common code to to all drivers in the mtd core level,
which is impossible with the current interface when MTD clients
call driver functions like 'read()' or 'write()' directly.

At this point we just introduce a new inline wrapper function, but
later some of them are expected to gain more code. E.g., the input
parameters check should be moved to the wrappers rather than be
duplicated at many drivers.

This particular patch introduced the 'mtd_erase()' interface. The
following patches add all the other interfaces one by one.

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>logfs: rename functions starting with mtd_</title>
<updated>2012-01-09T18:24:54Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@linux.intel.com</email>
</author>
<published>2011-12-23T13:44:14Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=48d3610268cef9cea0704119a74a00d1bf82f536'/>
<id>urn:sha1:48d3610268cef9cea0704119a74a00d1bf82f536</id>
<content type='text'>
We are going to re-work the MTD interface and change 'mtd-&gt;write()' to
'mtd_write()', 'mtd-&gt;read()' to 'mtd_read()' and so forth for all functions
in the 'struct mtd_info' structure.

However, logfs has its own 'mtd_read()', 'mtd_write()', etc functions
which collide with our changes. This patch renames these logfs functions
to 'logfs_mtd_read()', 'logfs_mtd_write()', etc.

Additionally, to make the 'fs/logfs/dev_mtd.c' file look consistent, rename
similarly all the other functions starting with 'mtd_'.

Cc: Jörn Engel &lt;joern@logfs.org&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>Fix common misspellings</title>
<updated>2011-03-31T14:26:23Z</updated>
<author>
<name>Lucas De Marchi</name>
<email>lucas.demarchi@profusion.mobi</email>
</author>
<published>2011-03-31T01:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=25985edcedea6396277003854657b5f3cb31a628'/>
<id>urn:sha1:25985edcedea6396277003854657b5f3cb31a628</id>
<content type='text'>
Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
</content>
</entry>
</feed>
