[PATCH] usbfs: usbfs_dir_inode_operations cleanup

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
OGAWA Hirofumi 2005-11-17 09:47:07 -08:00 committed by Linus Torvalds
parent c611d2cd2f
commit bc7cb323ba
1 changed files with 1 additions and 6 deletions

View File

@ -46,7 +46,6 @@
static struct super_operations usbfs_ops; static struct super_operations usbfs_ops;
static struct file_operations default_file_operations; static struct file_operations default_file_operations;
static struct inode_operations usbfs_dir_inode_operations;
static struct vfsmount *usbfs_mount; static struct vfsmount *usbfs_mount;
static int usbfs_mount_count; /* = 0 */ static int usbfs_mount_count; /* = 0 */
static int ignore_mount = 0; static int ignore_mount = 0;
@ -262,7 +261,7 @@ static struct inode *usbfs_get_inode (struct super_block *sb, int mode, dev_t de
inode->i_fop = &default_file_operations; inode->i_fop = &default_file_operations;
break; break;
case S_IFDIR: case S_IFDIR:
inode->i_op = &usbfs_dir_inode_operations; inode->i_op = &simple_dir_inode_operations;
inode->i_fop = &simple_dir_operations; inode->i_fop = &simple_dir_operations;
/* directory inodes start off with i_nlink == 2 (for "." entry) */ /* directory inodes start off with i_nlink == 2 (for "." entry) */
@ -417,10 +416,6 @@ static struct file_operations default_file_operations = {
.llseek = default_file_lseek, .llseek = default_file_lseek,
}; };
static struct inode_operations usbfs_dir_inode_operations = {
.lookup = simple_lookup,
};
static struct super_operations usbfs_ops = { static struct super_operations usbfs_ops = {
.statfs = simple_statfs, .statfs = simple_statfs,
.drop_inode = generic_delete_inode, .drop_inode = generic_delete_inode,