dir.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | dir.c (496ad9aa8ef448058e36ca7a787c61f2e63f0f54) |
---|---|
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 --- 88 unchanged lines hidden (view full) --- 97 * Translate back from internal f_pos to external f_pos. 98 */ 99 return length + 3; 100} 101 102 103static int squashfs_readdir(struct file *file, void *dirent, filldir_t filldir) 104{ | 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 --- 88 unchanged lines hidden (view full) --- 97 * Translate back from internal f_pos to external f_pos. 98 */ 99 return length + 3; 100} 101 102 103static int squashfs_readdir(struct file *file, void *dirent, filldir_t filldir) 104{ |
105 struct inode *inode = file->f_dentry->d_inode; | 105 struct inode *inode = file_inode(file); |
106 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; 107 u64 block = squashfs_i(inode)->start + msblk->directory_table; 108 int offset = squashfs_i(inode)->offset, length, dir_count, size, 109 type, err; 110 unsigned int inode_number; 111 struct squashfs_dir_header dirh; 112 struct squashfs_dir_entry *dire; 113 --- 130 unchanged lines hidden --- | 106 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; 107 u64 block = squashfs_i(inode)->start + msblk->directory_table; 108 int offset = squashfs_i(inode)->offset, length, dir_count, size, 109 type, err; 110 unsigned int inode_number; 111 struct squashfs_dir_header dirh; 112 struct squashfs_dir_entry *dire; 113 --- 130 unchanged lines hidden --- |