<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/qnx4, branch linux-2.6.37.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-10-29T08:16:13Z</updated>
<entry>
<title>new helper: mount_bdev()</title>
<updated>2010-10-29T08:16:13Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2010-07-24T20:46:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=152a08366671080f27b32e0c411ad620c5f88b57'/>
<id>urn:sha1:152a08366671080f27b32e0c411ad620c5f88b57</id>
<content type='text'>
... and switch of the obvious get_sb_bdev() users to -&gt;mount()

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>BKL: remove BKL from qnx4</title>
<updated>2010-10-21T16:48:04Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2010-10-21T13:53:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=073c21416268658bd1bc573af85eeac2ebb56ed5'/>
<id>urn:sha1:073c21416268658bd1bc573af85eeac2ebb56ed5</id>
<content type='text'>
All uses of the BKL in qnx4 were the result of a pushdown into
code that doesn't really need it. As Christoph points out, this
is a read-only file system, which eliminates most of the races in
readdir/lookup.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Anders Larsen &lt;al@alarsen.net&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
</content>
</entry>
<entry>
<title>BKL: Explicitly add BKL around get_sb/fill_super</title>
<updated>2010-10-04T19:10:10Z</updated>
<author>
<name>Jan Blunck</name>
</author>
<published>2010-08-15T20:51:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db71922217a214e5c9268448e537b54fc1f301ea'/>
<id>urn:sha1:db71922217a214e5c9268448e537b54fc1f301ea</id>
<content type='text'>
This patch is a preparation necessary to remove the BKL from do_new_mount().
It explicitly adds calls to lock_kernel()/unlock_kernel() around
get_sb/fill_super operations for filesystems that still uses the BKL.

I've read through all the code formerly covered by the BKL inside
do_kern_mount() and have satisfied myself that it doesn't need the BKL
any more.

do_kern_mount() is already called without the BKL when mounting the rootfs
and in nfsctl. do_kern_mount() calls vfs_kern_mount(), which is called
from various places without BKL: simple_pin_fs(), nfs_do_clone_mount()
through nfs_follow_mountpoint(), afs_mntpt_do_automount() through
afs_mntpt_follow_link(). Both later functions are actually the filesystems
follow_link inode operation. vfs_kern_mount() is calling the specified
get_sb function and lets the filesystem do its job by calling the given
fill_super function.

Therefore I think it is safe to push down the BKL from the VFS to the
low-level filesystems get_sb/fill_super operation.

[arnd: do not add the BKL to those file systems that already
       don't use it elsewhere]

Signed-off-by: Jan Blunck &lt;jblunck@infradead.org&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Matthew Wilcox &lt;matthew@wil.cx&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
</content>
</entry>
<entry>
<title>get rid of cont_write_begin_newtrunc</title>
<updated>2010-08-09T20:47:31Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2010-06-04T09:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=282dc178849882289d30e58b54be6b2799b351aa'/>
<id>urn:sha1:282dc178849882289d30e58b54be6b2799b351aa</id>
<content type='text'>
Move the call to vmtruncate to get rid of accessive blocks to the callers
in preparation of the new truncate sequence and rename the non-truncating
version to cont_write_begin.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>rename the generic fsync implementations</title>
<updated>2010-05-28T02:06:06Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2010-05-26T15:53:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1b061d9247f71cd15edc4c4c4600191a903642c0'/>
<id>urn:sha1:1b061d9247f71cd15edc4c4c4600191a903642c0</id>
<content type='text'>
We don't name our generic fsync implementations very well currently.
The no-op implementation for in-memory filesystems currently is called
simple_sync_file which doesn't make too much sense to start with,
the the generic one for simple filesystems is called simple_fsync
which can lead to some confusion.

This patch renames the generic file fsync method to generic_file_fsync
to match the other generic_file_* routines it is supposed to be used
with, and the no-op implementation to noop_fsync to make it obvious
what to expect.  In addition add some documentation for both methods.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/: do not fallback to default_llseek() when readdir() uses BKL</title>
<updated>2010-05-27T16:12:56Z</updated>
<author>
<name>jan Blunck</name>
</author>
<published>2010-05-26T21:44:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca572727dbb945e443564029a495157fd2e72995'/>
<id>urn:sha1:ca572727dbb945e443564029a495157fd2e72995</id>
<content type='text'>
Do not use the fallback default_llseek() if the readdir operation of the
filesystem still uses the big kernel lock.

Since llseek() modifies
file-&gt;f_pos of the directory directly it may need locking to not confuse
readdir which usually uses file-&gt;f_pos directly as well

Since the special characteristics of the BKL (unlocked on schedule) are
not necessary in this case, the inode mutex can be used for locking as
provided by generic_file_llseek().  This is only possible since all
filesystems, except reiserfs, either use a directory as a flat file or
with disk address offsets.  Reiserfs on the other hand uses a 32bit hash
off the filename as the offset so generic_file_llseek() can get used as
well since the hash is always smaller than sb-&gt;s_maxbytes (= (512 &lt;&lt; 32) -
blocksize).

Signed-off-by: Jan Blunck &lt;jblunck@suse.de&gt;
Acked-by: Jan Kara &lt;jack@suse.cz&gt;
Acked-by: Anders Larsen &lt;al@alarsen.net&gt;
Cc: Frederic Weisbecker &lt;fweisbec@gmail.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>fs/qnx4: decrement sizeof size in strncmp</title>
<updated>2010-02-04T10:55:46Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2009-11-12T22:08:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7e2a10836c0455cb3ca397f89b8280496148d571'/>
<id>urn:sha1:7e2a10836c0455cb3ca397f89b8280496148d571</id>
<content type='text'>
As an identical match is wanted in this case, strcmp can be used instead.

The semantic match that lead to detecting this problem is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
expression foo;
constant char *abc;
@@

*strncmp(foo, abc, sizeof(abc))
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Signed-off-by: Anders Larsen &lt;al@alarsen.net&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>qnx4: use hweight8</title>
<updated>2009-12-16T15:20:18Z</updated>
<author>
<name>Akinobu Mita</name>
</author>
<published>2009-12-16T00:48:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=868d64812ae84e8f094e0bcf95157c7d79d625ec'/>
<id>urn:sha1:868d64812ae84e8f094e0bcf95157c7d79d625ec</id>
<content type='text'>
Use hweight8 instead of counting for each bit

Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Acked-by: Anders Larsen &lt;al@alarsen.net&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&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>qnx4fs: remove remains of the (defunct) write support</title>
<updated>2009-12-16T15:20:17Z</updated>
<author>
<name>Anders Larsen</name>
</author>
<published>2009-12-16T00:48:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca120b20c32ffabf0e1d4319f65360e920fb4fe2'/>
<id>urn:sha1:ca120b20c32ffabf0e1d4319f65360e920fb4fe2</id>
<content type='text'>
commit 945ffe54bbd56ceed62de3b908800fd7c6ffb284 ("qnx4: remove write support") removed the (defunct)
write support but missed a chunk of related, dead code.

Signed-off-by: Anders Larsen &lt;al@alarsen.net&gt;
Cc: Jiri Kosina &lt;jkosina@suse.cz&gt;
Acked-by: Christoph Hellwig &lt;hch@lst.de&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>qnx4fs: add missing KERN_xxx to printk() calls</title>
<updated>2009-11-09T08:40:57Z</updated>
<author>
<name>Anders Larsen</name>
</author>
<published>2009-09-26T18:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=891ddb95d06e9dc260500f02438a5cff1ba6650a'/>
<id>urn:sha1:891ddb95d06e9dc260500f02438a5cff1ba6650a</id>
<content type='text'>
fixed printk calls to consistently specify a KERN_xxx level.

Signed-off-by: Anders Larsen &lt;al@alarsen.net&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
