namei.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) namei.c (00cd8dd3bf95f2cc8435b4cac01d9995635c6d0b)
1/*
2 * Squashfs - a compressed read only filesystem for Linux
3 *
4 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
5 * Phillip Lougher <phillip@squashfs.org.uk>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 120 unchanged lines hidden (view full) ---

129 * we invent "." and ".." entries which are not actually stored in the
130 * directory.
131 */
132 return length + 3;
133}
134
135
136static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry,
1/*
2 * Squashfs - a compressed read only filesystem for Linux
3 *
4 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
5 * Phillip Lougher <phillip@squashfs.org.uk>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 120 unchanged lines hidden (view full) ---

129 * we invent "." and ".." entries which are not actually stored in the
130 * directory.
131 */
132 return length + 3;
133}
134
135
136static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry,
137 struct nameidata *nd)
137 unsigned int flags)
138{
139 const unsigned char *name = dentry->d_name.name;
140 int len = dentry->d_name.len;
141 struct inode *inode = NULL;
142 struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info;
143 struct squashfs_dir_header dirh;
144 struct squashfs_dir_entry *dire;
145 u64 block = squashfs_i(dir)->start + msblk->directory_table;

--- 103 unchanged lines hidden ---
138{
139 const unsigned char *name = dentry->d_name.name;
140 int len = dentry->d_name.len;
141 struct inode *inode = NULL;
142 struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info;
143 struct squashfs_dir_header dirh;
144 struct squashfs_dir_entry *dire;
145 u64 block = squashfs_i(dir)->start + msblk->directory_table;

--- 103 unchanged lines hidden ---