rendered paste bodywhile(e = pop(stack)){ printk("popped\n"); if((e->fp->f_dentry->d_inode) && (S_ISDIR(e->fp->f_dentry->d_inode->i_mode))) { printk("dir with inode\n"); for(l=e->fp->f_dentry->d_subdirs.next; (l != &e->fp->f_dentry->d_subdirs); l=l->next){ dp = list_entry(l, struct dentry, d_child); path = d_path(dp, start->f_vfsmnt, path, MAXPATHLEN); fp = filp_open(path, O_RDONLY, O_NOATIME | O_NOFOLLOW ); printk("Child: (%s)", path); if(fp){ printk(" : it worked"); filp_close(fp, current->files); } printk("\n"); } } if(e->fp != start) { printk("Freeing and Kfree'ing\n"); filp_close(e->fp, current->files); kfree(e); } }