Skip to contentSkip to conversation

autofs4 - rename simple_empty_nolock function

PATCH In review Ian Kent 1 participant 1 message Jan 18, 2006

Subsystems (2)
lore
Share & tools
lore

Ian Kent

author maintainer
#0 lore raw

PATCH 11/13 autofs4 - rename simple_empty_nolock function

This patch renames the function simple_empty_nolock to __simple_empty in line with kernel naming conventions.

fs/autofs4/autofs_i.h renamed from fs/autofs4/autofs_i.h.rename-simple_empty_nolock +1 -1
@@ -200,7 +200,7 @@ static inline int simple_positive(struct
 	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;
fs/autofs4/root.c renamed from fs/autofs4/root.c.rename-simple_empty_nolock +1 -1
@@ -343,7 +343,7 @@ static int autofs4_revalidate(struct den
 	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);