<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/fs/autofs4/root.c, branch v2.6.33-rt7</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v2.6.33-rt7</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v2.6.33-rt7'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2009-12-16T15:19:58+00:00</updated>
<entry>
<title>autofs4: always use lookup for lookup</title>
<updated>2009-12-16T15:19:58+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:51+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=213614d583748d00967a91cacd656f417efb36ce'/>
<id>urn:sha1:213614d583748d00967a91cacd656f417efb36ce</id>
<content type='text'>
We need to be able to cope with the directory mutex being held during
-&gt;d_revalidate() in some cases, but not all cases, and not necessarily by
us.  Because we need to release the mutex when we call back to the daemon
to do perform a mount we must be sure that it is us who holds the mutex so
we must redirect mount requests to -&gt;lookup() if the mutex is held.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: rename dentry to expiring in autofs4_lookup_expiring()</title>
<updated>2009-12-16T15:19:58+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:50+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=cb4b492ac7595aad10756fe0b04691f0965e0cfc'/>
<id>urn:sha1:cb4b492ac7595aad10756fe0b04691f0965e0cfc</id>
<content type='text'>
In autofs4_lookup_expiring() a declaration within the list traversal loop
uses a declaration that has the same name as the function parameter.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: rename dentry to active in autofs4_lookup_active()</title>
<updated>2009-12-16T15:19:58+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:49+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=e4d5ade7b54cf74efcf53ff3dcb09454c29d70cf'/>
<id>urn:sha1:e4d5ade7b54cf74efcf53ff3dcb09454c29d70cf</id>
<content type='text'>
In autofs4_lookup_active() a declaration within the list traversal loop
uses a declaration that has the same name as the function parameter.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: eliminate d_unhashed in path walk checks</title>
<updated>2009-12-16T15:19:58+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:48+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=c42c7f7e698fa888abbd50eb9c8e328fff68914f'/>
<id>urn:sha1:c42c7f7e698fa888abbd50eb9c8e328fff68914f</id>
<content type='text'>
We unhash the dentry (in a subsequent patch) in -&gt;d_revalidate() in order
to send mount requests to -&gt;lookup().  But then we can not rely on
d_unhased() to give reliable results because it may be called at any time
by any code path.  The d_unhashed() function is used by __simple_empty()
in the path walking callbacks but autofs mount point dentrys should have
no directories at all so a list_empty() on d_subdirs should be (and is)
sufficient.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: cleanup active and expire lookup</title>
<updated>2009-12-16T15:19:58+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:47+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=6510c9d8595adcee2b0dc86408bc432a8dd7d652'/>
<id>urn:sha1:6510c9d8595adcee2b0dc86408bc432a8dd7d652</id>
<content type='text'>
The lookup functions for active and expiring dentrys use parameters that
can be easily obtained on entry so we change the call to to take just the
dentry.  This makes the subsequent change, to send all lookups to
-&gt;lookup(), a bit cleaner.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: renamer unhashed to active in autofs4_lookup()</title>
<updated>2009-12-16T15:19:58+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:46+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=90387c9c1d5787aeb7dfdfc90c8f8aeaeed7ad0e'/>
<id>urn:sha1:90387c9c1d5787aeb7dfdfc90c8f8aeaeed7ad0e</id>
<content type='text'>
Rename the variable unhashed to active in autofs4_lookup() to better
reflect its usage.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: use autofs_info for pending flag</title>
<updated>2009-12-16T15:19:58+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:45+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=aa952eb26d4344fdad44c104f3c298d3130c53da'/>
<id>urn:sha1:aa952eb26d4344fdad44c104f3c298d3130c53da</id>
<content type='text'>
Eliminate the use of the d_lock spin lock by using the autofs super block
info spin lock.  This reduces the number of spin locks we use by one and
makes the code for the following patch (to redirect -&gt;d_revalidate() to
-&gt;lookup()) a little simpler.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: use helper function for need mount check</title>
<updated>2009-12-16T15:19:57+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:44+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=36b6413ef301d30f60037e497ecb902897895473'/>
<id>urn:sha1:36b6413ef301d30f60037e497ecb902897895473</id>
<content type='text'>
Define simple helper function for checking if we need to trigger a mount.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: use helper functions for expiring list</title>
<updated>2009-12-16T15:19:57+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:43+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=c4cd70b3e3e95cc2201a00edf6deb52327d73c6b'/>
<id>urn:sha1:c4cd70b3e3e95cc2201a00edf6deb52327d73c6b</id>
<content type='text'>
Define some simple helper functions for adding and deleting entries on the
expiring dentry list.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>autofs4: use helper functions for active list handling</title>
<updated>2009-12-16T15:19:57+00:00</updated>
<author>
<name>Ian Kent</name>
<email>raven@themaw.net</email>
</author>
<published>2009-12-16T00:45:42+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=4f8427d1903148f9753eb35c5f51a8a865457329'/>
<id>urn:sha1:4f8427d1903148f9753eb35c5f51a8a865457329</id>
<content type='text'>
Define some simple helper functions for adding and deleting entries on the
active (and unhashed) dentry list.

Signed-off-by: Ian Kent &lt;raven@themaw.net&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Cc: Andreas Dilger &lt;adilger@sun.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Yehuda Saheh &lt;yehuda@newdream.net&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>
