commit 02c189a486f4ae5ce7bdc78ce255e10f71c05d1b
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
bedef96bd5736764d49b05396eb56687562a4ac0..1d46be8598e5fb4c2ebcbfa34adecacb0d82e7fe
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
b35dd84a7b6f20db496a970e35391f1a7f6176ce..189f581ffe24a1a5f84d9be6c8b977fa79bc16ff
100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -57,9 +57,6 @@ #define UNIONFS_NAME "unionfs"
/* 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