patch-2.3.51 linux/fs/autofs/root.c

Next file: linux/fs/autofs4/init.c
Previous file: linux/fs/autofs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/fs/autofs/root.c linux/fs/autofs/root.c
@@ -227,7 +227,7 @@
 	 * doesn't do the right thing for all system calls, but it should
 	 * be OK for the operations we permit from an autofs.
 	 */
-	if ( dentry->d_inode && list_empty(&dentry->d_hash) )
+	if ( dentry->d_inode && d_unhashed(dentry) )
 		return ERR_PTR(-ENOENT);
 
 	return NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)