commit 66bc74e203599f093a34fccc940b68f7705840ca
Author: Erez Zadok <[EMAIL PROTECTED](none)>
Date:   Fri May 18 01:56:08 2007 -0400

    cleanup: remove unnecessary macro used in only one place
    
    Remove the UNIONFS_TMPNAM_LEN macro and just use the actual length of the
    string file name in question, which is more efficient (and correct).

diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index bedef96..1d46be8 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -63,7 +63,7 @@ retry:
                       dentry->d_name.name, name);
 
                tmp_dentry = lookup_one_len(name, hidden_dentry->d_parent,
-                                           UNIONFS_TMPNAM_LEN);
+                                           nlen);
                if (IS_ERR(tmp_dentry)) {
                        err = PTR_ERR(tmp_dentry);
                        goto out;
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index b35dd84..189f581 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -57,9 +57,6 @@
 /* unionfs root inode number */
 #define UNIONFS_ROOT_INO     1
 
-/* number of characters while generating unique temporary file names */
-#define        UNIONFS_TMPNAM_LEN      12
-
 /* number of times we try to get a unique temporary file name */
 #define GET_TMPNAM_MAX_RETRY   5
 
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to