Merge with Linux 2.4.0-test5-pre1. This works again on Origin UP.
[linux-2.6/linux-mips.git] / fs / autofs / dir.c
blob9c114f1c2bf2011cd89b784ef92d9abd71fe6cf1
1 /* -*- linux-c -*- --------------------------------------------------------- *
3 * linux/fs/autofs/dir.c
5 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
7 * This file is part of the Linux kernel and is made available under
8 * the terms of the GNU General Public License, version 2, or at your
9 * option, any later version, incorporated herein by reference.
11 * ------------------------------------------------------------------------- */
13 #include "autofs_i.h"
16 * No entries except for "." and "..", both of which are handled by the VFS
17 * layer. So all children are negative and dcache-based versions of operations
18 * are OK.
20 static struct dentry *autofs_dir_lookup(struct inode *dir,struct dentry *dentry)
22 d_add(dentry, NULL);
23 return NULL;
26 struct file_operations autofs_dir_operations = {
27 read: generic_read_dir,
28 readdir: dcache_readdir,
31 struct inode_operations autofs_dir_inode_operations = {
32 lookup: autofs_dir_lookup,