vxfs_lookup.c (db8c246937713e60b7628661ccc187eeb81f2bae) | vxfs_lookup.c (496ad9aa8ef448058e36ca7a787c61f2e63f0f54) |
---|---|
1/* 2 * Copyright (c) 2000-2001 Christoph Hellwig. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 223 unchanged lines hidden (view full) --- 232 * using the VFS supplied callback @filler. 233 * 234 * Returns: 235 * Zero. 236 */ 237static int 238vxfs_readdir(struct file *fp, void *retp, filldir_t filler) 239{ | 1/* 2 * Copyright (c) 2000-2001 Christoph Hellwig. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 223 unchanged lines hidden (view full) --- 232 * using the VFS supplied callback @filler. 233 * 234 * Returns: 235 * Zero. 236 */ 237static int 238vxfs_readdir(struct file *fp, void *retp, filldir_t filler) 239{ |
240 struct inode *ip = fp->f_path.dentry->d_inode; | 240 struct inode *ip = file_inode(fp); |
241 struct super_block *sbp = ip->i_sb; 242 u_long bsize = sbp->s_blocksize; 243 u_long page, npages, block, pblocks, nblocks, offset; 244 loff_t pos; 245 246 switch ((long)fp->f_pos) { 247 case 0: 248 if (filler(retp, ".", 1, fp->f_pos, ip->i_ino, DT_DIR) < 0) --- 74 unchanged lines hidden --- | 241 struct super_block *sbp = ip->i_sb; 242 u_long bsize = sbp->s_blocksize; 243 u_long page, npages, block, pblocks, nblocks, offset; 244 loff_t pos; 245 246 switch ((long)fp->f_pos) { 247 case 0: 248 if (filler(retp, ".", 1, fp->f_pos, ip->i_ino, DT_DIR) < 0) --- 74 unchanged lines hidden --- |