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).
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;
/* 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