<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/namei.c, branch linux-2.6.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2006-10-01T07:39:30Z</updated>
<entry>
<title>[PATCH] r/o bind mount prepwork: move open_namei()'s vfs_create()</title>
<updated>2006-10-01T07:39:30Z</updated>
<author>
<name>Dave Hansen</name>
</author>
<published>2006-10-01T06:29:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aab520e2f6c80160cabd187a8d0292d1cec8ff68'/>
<id>urn:sha1:aab520e2f6c80160cabd187a8d0292d1cec8ff68</id>
<content type='text'>
The code around vfs_create() in open_namei() is getting a bit too complex.
Right now, there is at least the reference count on the dentry, and the
i_mutex to worry about.  Soon, we'll also have mnt_writecount.

So, break the vfs_create() call out of open_namei(), and into a helper
function.  This duplicates the call to may_open(), but that isn't such a bad
thing since the arguments (acc_mode and flag) were being heavily massaged
anyway.

Signed-off-by: Dave Hansen &lt;haveblue@us.ibm.com&gt;
Acked-by: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] r/o bind mounts: prepare for write access checks: collapse if()</title>
<updated>2006-10-01T07:39:30Z</updated>
<author>
<name>Dave Hansen</name>
</author>
<published>2006-10-01T06:29:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6902d925d568cd5bfda8a1a328bf08d26d1bab46'/>
<id>urn:sha1:6902d925d568cd5bfda8a1a328bf08d26d1bab46</id>
<content type='text'>
We're shortly going to be adding a bunch more permission checks in these
functions.  That requires adding either a bunch of new if() conditions, or
some gotos.  This patch collapses existing if()s and uses gotos instead to
prepare for the upcoming changes.

Signed-off-by: Dave Hansen &lt;haveblue@us.ibm.com&gt;
Acked-by: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] fs/namei.c: replace multiple current-&gt;fs by shortcut variable</title>
<updated>2006-09-29T16:18:22Z</updated>
<author>
<name>Andreas Mohr</name>
</author>
<published>2006-09-29T09:01:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e518ddb7ba44a3d852c0e41961365844c76eb2bf'/>
<id>urn:sha1:e518ddb7ba44a3d852c0e41961365844c76eb2bf</id>
<content type='text'>
Replace current-&gt;fs by fs helper variable to reduce some indirection
overhead and (at least at the moment, before the current_thread_info() %gs
PDA improvement is available) get rid of more costly current references.
Reduces fs/namei.o from 37786 to 37082 Bytes (704 Bytes saved).

[akpm@osdl.org: cleanup]
Signed-off-by: Andreas Mohr &lt;andi@lisas.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] autofs4 needs to force fail return revalidate</title>
<updated>2006-09-27T15:26:17Z</updated>
<author>
<name>Ian Kent</name>
</author>
<published>2006-09-27T08:50:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bcdc5e019d9f525a9f181a7de642d3a9c27c7610'/>
<id>urn:sha1:bcdc5e019d9f525a9f181a7de642d3a9c27c7610</id>
<content type='text'>
For a long time now I have had a problem with not being able to return a
lookup failure on an existsing directory.  In autofs this corresponds to a
mount failure on a autofs managed mount entry that is browsable (and so the
mount point directory exists).

While this problem has been present for a long time I've avoided resolving
it because it was not very visible.  But now that autofs v5 has "mount and
expire on demand" of nested multiple mounts, such as is found when mounting
an export list from a server, solving the problem cannot be avoided any
longer.

I've tried very hard to find a way to do this entirely within the autofs4
module but have not been able to find a satisfactory way to achieve it.

So, I need to propose a change to the VFS.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Allow file systems to manually d_move() inside of -&gt;rename()</title>
<updated>2006-09-24T20:50:45Z</updated>
<author>
<name>Mark Fasheh</name>
</author>
<published>2006-09-08T21:22:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=349457ccf2592c14bdf13b6706170ae2e94931b1'/>
<id>urn:sha1:349457ccf2592c14bdf13b6706170ae2e94931b1</id>
<content type='text'>
Some file systems want to manually d_move() the dentries involved in a
rename.  We can do this by making use of the FS_ODD_RENAME flag if we just
have nfs_rename() unconditionally do the d_move().  While there, we rename
the flag to be more descriptive.

OCFS2 uses this to protect that part of the rename operation with a cluster
lock.

Signed-off-by: Mark Fasheh &lt;mark.fasheh@oracle.com&gt;
Cc: Trond Myklebust &lt;trond.myklebust@fys.uio.no&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
</content>
</entry>
<entry>
<title>VFS: Fix access("file", X_OK) in the presence of ACLs</title>
<updated>2006-08-24T19:54:58Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2006-08-23T00:06:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a343bb7750e6a098909c34f5c5dfddbc4fa40053'/>
<id>urn:sha1:a343bb7750e6a098909c34f5c5dfddbc4fa40053</id>
<content type='text'>
Currently, the access() call will return incorrect information on NFS if
there exists an ACL that grants execute access to the user on a regular
file. The reason the information is incorrect is that the VFS overrides
this execute access in open_exec() by checking (inode-&gt;i_mode &amp; 0111).

This patch propagates the VFS execute bit check back into the generic
permission() call.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
(cherry picked from 64cbae98848c4c99851cb0a405f0b4982cd76c1e commit)
</content>
</entry>
<entry>
<title>VFS: add lookup hint for network file systems</title>
<updated>2006-08-24T19:49:14Z</updated>
<author>
<name>ASANO Masahiro</name>
</author>
<published>2006-08-23T00:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a634904a7de0d3a0bc606f608007a34e8c05bfee'/>
<id>urn:sha1:a634904a7de0d3a0bc606f608007a34e8c05bfee</id>
<content type='text'>
I'm trying to speeding up mkdir(2) for network file systems.  A typical
mkdir(2) calls two inode_operations: lookup and mkdir.  The lookup
operation would fail with ENOENT in common case.  I think it is unnecessary
because the subsequent mkdir operation can check it.  In case of creat(2),
lookup operation is called with the LOOKUP_CREATE flag, so individual
filesystem can omit real lookup.  e.g.  nfs_lookup().

Here is a sample patch which uses LOOKUP_CREATE and O_EXCL on mkdir,
symlink and mknod.  This uses the gadget for creat(2).

And here is the result of a benchmark on NFSv3.
  mkdir(2) 10,000 times:
    original  50.5 sec
    patched   29.0 sec

Signed-off-by: ASANO Masahiro &lt;masano@tnes.nec.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
(cherry picked from fab7bf44449b29f9d5572a5dd8adcf7c91d5bf0f commit)
</content>
</entry>
<entry>
<title>[PATCH] don't bother with aux entires for dummy context</title>
<updated>2006-08-03T14:59:42Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2006-07-16T10:38:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ac3a9c26c1cc4861d9cdd8b293fecbfcdc81afe'/>
<id>urn:sha1:5ac3a9c26c1cc4861d9cdd8b293fecbfcdc81afe</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>[PATCH] fix missed create event for directory audit</title>
<updated>2006-08-03T14:50:30Z</updated>
<author>
<name>Amy Griffis</name>
</author>
<published>2006-07-13T17:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73d3ec5abad3f1730ac8530899d2c14d92f3ad63'/>
<id>urn:sha1:73d3ec5abad3f1730ac8530899d2c14d92f3ad63</id>
<content type='text'>
When an object is created via a symlink into an audited directory, audit misses
the event due to not having collected the inode data for the directory.  Modify
__audit_inode_child() to copy the parent inode data if a parent wasn't found in
audit_names[].

Signed-off-by: Amy Griffis &lt;amy.griffis@hp.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>[PATCH] fix faulty inode data collection for open() with O_CREAT</title>
<updated>2006-08-03T14:50:21Z</updated>
<author>
<name>Amy Griffis</name>
</author>
<published>2006-07-13T17:16:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e2efce067cec0099f99ae59f28feda99b02b498'/>
<id>urn:sha1:3e2efce067cec0099f99ae59f28feda99b02b498</id>
<content type='text'>
When the specified path is an existing file or when it is a symlink, audit
collects the wrong inode number, which causes it to miss the open() event.
Adding a second hook to the open() path fixes this.

Also add audit_copy_inode() to consolidate some code.

Signed-off-by: Amy Griffis &lt;amy.griffis@hp.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
</feed>
