22 lines
852 B
Diff
22 lines
852 B
Diff
|
diff -uNr novfs-1.2.0.orig/novfs/daemon.c novfs-1.2.0/novfs/daemon.c
|
||
|
--- novfs-1.2.0.orig/novfs/daemon.c 2006-07-11 21:24:18.000000000 +0200
|
||
|
+++ novfs-1.2.0/novfs/daemon.c 2006-08-30 22:32:57.000000000 +0200
|
||
|
@@ -2784,7 +2784,7 @@
|
||
|
if (nd.last_type == LAST_NORM)
|
||
|
{
|
||
|
mutex_lock(&nd.dentry->d_inode->i_mutex);
|
||
|
- dentry = lookup_hash( &nd );
|
||
|
+ dentry = lookup_create( &nd, 1);
|
||
|
DbgPrint("local_unlink: lookup_hash 0x%p\n", dentry);
|
||
|
|
||
|
error = PTR_ERR(dentry);
|
||
|
@@ -2839,7 +2839,7 @@
|
||
|
if (nd.last_type == LAST_NORM)
|
||
|
{
|
||
|
down(&nd.dentry->d_inode->i_sem);
|
||
|
- dentry = lookup_hash(&nd.last, nd.dentry);
|
||
|
+ dentry = lookup_one_len(&nd.last, nd.dentry, sizeof(nd.last));
|
||
|
DbgPrint("local_unlink: lookup_hash 0x%p\n", dentry);
|
||
|
|
||
|
error = PTR_ERR(dentry);
|