<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/fat/dir.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-11-06T23:41:22Z</updated>
<entry>
<title>fat: i_blocks warning fix</title>
<updated>2008-11-06T23:41:22Z</updated>
<author>
<name>OGAWA Hirofumi</name>
</author>
<published>2008-11-06T20:53:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c3302931db090d87e9015c3a7ce5c97a7dd90f78'/>
<id>urn:sha1:c3302931db090d87e9015c3a7ce5c97a7dd90f78</id>
<content type='text'>
blkcnt_t type depends on CONFIG_LSF. Use unsigned long long always for
printk().  But lazy to type it, so add "llu" and use it.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fat: mmu_private race fix</title>
<updated>2008-11-06T23:41:21Z</updated>
<author>
<name>OGAWA Hirofumi</name>
</author>
<published>2008-11-06T20:53:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2bdf67eb1631f30e2f3f5d49e4007c76e88877a8'/>
<id>urn:sha1:2bdf67eb1631f30e2f3f5d49e4007c76e88877a8</id>
<content type='text'>
mmu_private is 64bits value, hence it's not atomic to update.

So, the access rule for mmu_private is we must hold -&gt;i_mutex.  But,
fat_get_block() path doesn't follow the rule on non-allocation path.

This fixes by using i_size instead if non-allocation path.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fat: cleanup fat_parse_long() error handling</title>
<updated>2008-11-06T23:41:20Z</updated>
<author>
<name>Darren Jenkins</name>
</author>
<published>2008-11-06T20:53:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=52e9d9f4b32a3bec91feb76c84e37b7dcffe5040'/>
<id>urn:sha1:52e9d9f4b32a3bec91feb76c84e37b7dcffe5040</id>
<content type='text'>
Coverity CID 2332 &amp; 2333 RESOURCE_LEAK

In fat_search_long() if fat_parse_long() returns a -ve value we return
without first freeing unicode.  This patch free's them on this error path.

The above was false positive on current tree, but this change is more
clean, so apply as cleanup.

[hirofumi@mail.parknet.co.jp: fix coding style]
Signed-off-by: Darren Jenkins &lt;darrenrjenkins@gmail.com&gt;
Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fat: use generic_file_llseek() for directory</title>
<updated>2008-11-06T23:41:20Z</updated>
<author>
<name>OGAWA Hirofumi</name>
</author>
<published>2008-11-06T20:53:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=53472bc8f810d2fb507593ea03703670506a668d'/>
<id>urn:sha1:53472bc8f810d2fb507593ea03703670506a668d</id>
<content type='text'>
Since fat_dir_ioctl() was already fixed (i.e. called under -&gt;i_mutex),
and __fat_readdir() doesn't take BKL anymore. So, BKL for -&gt;llseek()
is pointless, and we have to use generic_file_llseek().

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fat: Fix and cleanup timestamp conversion</title>
<updated>2008-11-06T23:41:20Z</updated>
<author>
<name>OGAWA Hirofumi</name>
</author>
<published>2008-11-06T20:53:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7decd1cb0305b97243f283fa7f4baf5fe613edeb'/>
<id>urn:sha1:7decd1cb0305b97243f283fa7f4baf5fe613edeb</id>
<content type='text'>
This cleans date_dos2unix()/fat_date_unix2dos() up. New code should be
much more readable.

And this fixes those old functions. Those doesn't handle 2100
correctly. 2100 isn't leap year, but old one handles it as leap year.
Also, with this, centi sec is handled and is fixed.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fat: split include/msdos_fs.h</title>
<updated>2008-11-06T23:41:20Z</updated>
<author>
<name>OGAWA Hirofumi</name>
</author>
<published>2008-11-06T20:53:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e975dae2970d22557662761c8505ce9fd165684'/>
<id>urn:sha1:9e975dae2970d22557662761c8505ce9fd165684</id>
<content type='text'>
This splits __KERNEL__ stuff in include/msdos_fs.h into fs/fat/fat.h.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] fix -&gt;llseek for more directories</title>
<updated>2008-10-23T09:13:21Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2008-09-03T19:53:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3222a3e55f4025acb2a5a4379cf2f2b7df1f1243'/>
<id>urn:sha1:3222a3e55f4025acb2a5a4379cf2f2b7df1f1243</id>
<content type='text'>
With this patch all directory fops instances that have a readdir
that doesn't take the BKL are switched to generic_file_llseek.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>fatfs: add UTC timestamp option</title>
<updated>2008-07-25T17:53:34Z</updated>
<author>
<name>Joe Peterson</name>
</author>
<published>2008-07-25T08:46:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b271e067c896ad4082b15e96077675d08db40625'/>
<id>urn:sha1:b271e067c896ad4082b15e96077675d08db40625</id>
<content type='text'>
Provide a new mount option ("tz=UTC") for DOS (vfat/msdos) filesystems,
allowing timestamps to be in coordinated universal time (UTC) rather than
local time in applications where doing this is advantageous.

In particular, portable devices that use fat/vfat (such as digital
cameras) can benefit from using UTC in their internal clocks, thus
avoiding daylight saving time errors and general time ambiguity issues.
The user of the device does not have to worry about changing the time when
moving from place or when daylight saving changes.

The new mount option, when set, disables the counter-adjustment that Linux
currently makes to FAT timestamp info in anticipation of the normal
userspace time zone correction.  When used in this new mode, all daylight
saving time and time zone handling is done in userspace as is normal for
many other filesystems (like ext3).  The default mode, which remains
unchanged, is still appropriate when mounting volumes written in Windows
(because of its use of local time).

I originally based this patch on one submitted last year by Paul Collins,
but I updated it to work with current source and changed variable/option
naming.  Ogawa Hirofumi (who maintains these filesystems) and I discussed
this patch at length on lkml, and he suggested using the option name in
the attached version of the patch.  Barry Bouwsma pointed out a good
addition to the patch as well.

Signed-off-by: Joe Peterson &lt;joe@skyrush.com&gt;
Signed-off-by: Paul Collins &lt;paul@ondioline.org&gt;
Acked-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Cc: Barry Bouwsma &lt;free_beer_for_all@yahoo.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fat: small optimization to __fat_readdir()</title>
<updated>2008-07-25T17:53:34Z</updated>
<author>
<name>OGAWA Hirofumi</name>
</author>
<published>2008-07-25T08:46:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dcd8c53f13f068ee039589d84fbd0baf686abc41'/>
<id>urn:sha1:dcd8c53f13f068ee039589d84fbd0baf686abc41</id>
<content type='text'>
This removes unnecessary parsing for directory entries.

If short_only, we don't need to parse longname.  And if !both and it found
the longname, we don't need shortname.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fat: use same logic in fat_search_long() and __fat_readdir()</title>
<updated>2008-07-25T17:53:34Z</updated>
<author>
<name>OGAWA Hirofumi</name>
</author>
<published>2008-07-25T08:46:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=98a15160049fc1a0f822047f33ff513906a35567'/>
<id>urn:sha1:98a15160049fc1a0f822047f33ff513906a35567</id>
<content type='text'>
This uses uses stack for shortname, and uses __getname() for longname in
fat_search_long() and __fat_readdir().  By this, it removes unneeded
__getname() for shortname.

Signed-off-by: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
