fs/unionfs/: Rename unionfs_d_revalidate_wrap
authorJosef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Sat, 24 Feb 2007 21:47:45 +0000 (16:47 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 Jan 2009 23:20:18 +0000 (18:20 -0500)
Follow the convention of "foo" calling "__foo".

Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/commonfops.c
fs/unionfs/dentry.c
fs/unionfs/union.h

index 66d6ce9e07b5531241226928ec11443eab130ed7..2664be9feb4240984d4856ee503e387669270452 100644 (file)
@@ -228,7 +228,7 @@ int unionfs_file_revalidate(struct file *file, int willwrite)
        unionfs_lock_dentry(dentry);
        sb = dentry->d_sb;
        unionfs_read_lock(sb);
-       if (!unionfs_d_revalidate(dentry, NULL) && !d_deleted(dentry)) {
+       if (!__unionfs_d_revalidate(dentry, NULL) && !d_deleted(dentry)) {
                err = -ESTALE;
                goto out_nofree;
        }
index ac4bf0e435ccbedf89d1b36dd6be0d8435fcb676..cae48976b6ddcf0383be60312e04951adc5b22a2 100644 (file)
@@ -21,7 +21,7 @@
 /*
  * returns 1 if valid, 0 otherwise.
  */
-int unionfs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
+int __unionfs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
 {
        int valid = 1;          /* default is valid (1); invalid is 0. */
        struct dentry *hidden_dentry;
@@ -174,13 +174,12 @@ out:
        return valid;
 }
 
-static int unionfs_d_revalidate_wrap(struct dentry *dentry,
-                                    struct nameidata *nd)
+static int unionfs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
 {
        int err;
 
        unionfs_lock_dentry(dentry);
-       err = unionfs_d_revalidate(dentry, nd);
+       err = __unionfs_d_revalidate(dentry, nd);
        unionfs_unlock_dentry(dentry);
 
        return err;
@@ -226,7 +225,7 @@ out:
 }
 
 struct dentry_operations unionfs_dops = {
-       .d_revalidate   = unionfs_d_revalidate_wrap,
+       .d_revalidate   = unionfs_d_revalidate,
        .d_release      = unionfs_d_release,
 };
 
index 60276c7ab3b7482d283242f53288727de41b5b4c..bae3c76332efcc00c2d796ac921f885744826cf3 100644 (file)
@@ -296,7 +296,7 @@ extern int unionfs_rename(struct inode *old_dir, struct dentry *old_dentry,
 int unionfs_unlink(struct inode *dir, struct dentry *dentry);
 int unionfs_rmdir(struct inode *dir, struct dentry *dentry);
 
-int unionfs_d_revalidate(struct dentry *dentry, struct nameidata *nd);
+int __unionfs_d_revalidate(struct dentry *dentry, struct nameidata *nd);
 
 /* The values for unionfs_interpose's flag. */
 #define INTERPOSE_DEFAULT      0