]> err.no Git - linux-2.6/commitdiff
[PATCH] autofs4: rename simple_empty_nolock function
authorIan Kent <raven@themaw.net>
Mon, 27 Mar 2006 09:14:50 +0000 (01:14 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:40 +0000 (08:44 -0800)
Rename the function simple_empty_nolock to __simple_empty in line with kernel
naming conventions.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/autofs4/autofs_i.h
fs/autofs4/root.c

index d82a019ff8efdc855669b842c6f41242b8069e1d..bc1b0543d2b6f9139b7a068c36192c690048d99a 100644 (file)
@@ -201,7 +201,7 @@ static inline int simple_positive(struct dentry *dentry)
        return dentry->d_inode && !d_unhashed(dentry);
 }
 
-static inline int simple_empty_nolock(struct dentry *dentry)
+static inline int __simple_empty(struct dentry *dentry)
 {
        struct dentry *child;
        int ret = 0;
index 72dca3335e255bc44804a1f171d9f2d27e2e3657..dcd4802a5d5fb1b1e8c3ab9e9750c8aa544ac3d6 100644 (file)
@@ -343,7 +343,7 @@ static int autofs4_revalidate(struct dentry *dentry, struct nameidata *nd)
        spin_lock(&dcache_lock);
        if (S_ISDIR(dentry->d_inode->i_mode) &&
            !d_mountpoint(dentry) && 
-           simple_empty_nolock(dentry)) {
+           __simple_empty(dentry)) {
                DPRINTK("dentry=%p %.*s, emptydir",
                         dentry, dentry->d_name.len, dentry->d_name.name);
                spin_unlock(&dcache_lock);