/linux-2.4.37.9/fs/autofs4/ |
D | inode.c | 22 static void ino_lnkfree(struct autofs_info *ino) in ino_lnkfree() argument 24 if (ino->u.symlink) { in ino_lnkfree() 25 kfree(ino->u.symlink); in ino_lnkfree() 26 ino->u.symlink = NULL; in ino_lnkfree() 30 struct autofs_info *autofs4_init_ino(struct autofs_info *ino, in autofs4_init_ino() argument 35 if (ino == NULL) { in autofs4_init_ino() 37 ino = kmalloc(sizeof(*ino), GFP_KERNEL); in autofs4_init_ino() 40 if (ino == NULL) in autofs4_init_ino() 43 ino->flags = 0; in autofs4_init_ino() 44 ino->mode = mode; in autofs4_init_ino() [all …]
|
D | root.c | 62 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_update_usage() local 64 if (ino) { in autofs4_update_usage() 66 ino->last_used = jiffies; in autofs4_update_usage() 312 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_dir_symlink() local 322 ino = autofs4_init_ino(ino, sbi, S_IFLNK | 0555); in autofs4_dir_symlink() 323 if (ino == NULL) in autofs4_dir_symlink() 326 ino->size = strlen(symname); in autofs4_dir_symlink() 327 ino->u.symlink = cp = kmalloc(ino->size + 1, GFP_KERNEL); in autofs4_dir_symlink() 330 kfree(ino); in autofs4_dir_symlink() 336 inode = autofs4_get_inode(dir->i_sb, ino); in autofs4_dir_symlink() [all …]
|
D | symlink.c | 17 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_readlink() local 19 return vfs_readlink(dentry, buffer, buflen, ino->u.symlink); in autofs4_readlink() 24 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_follow_link() local 26 return vfs_follow_link(nd, ino->u.symlink); in autofs4_follow_link()
|
/linux-2.4.37.9/fs/ntfs/ |
D | inode.c | 66 ntfs_attribute *ntfs_find_attr(ntfs_inode *ino, int type, char *name) in ntfs_find_attr() argument 70 if (!ino) { in ntfs_find_attr() 74 for (i = 0; i < ino->attr_count; i++) { in ntfs_find_attr() 75 if (type < ino->attrs[i].type) in ntfs_find_attr() 77 if (type == ino->attrs[i].type) { in ntfs_find_attr() 79 if (!ino->attrs[i].name) in ntfs_find_attr() 80 return ino->attrs + i; in ntfs_find_attr() 81 } else if (ino->attrs[i].name && in ntfs_find_attr() 82 !ntfs_ua_strncmp(ino->attrs[i].name, name, in ntfs_find_attr() 84 return ino->attrs + i; in ntfs_find_attr() [all …]
|
D | attr.c | 100 int ntfs_new_attr(ntfs_inode *ino, int type, void *name, int namelen, in ntfs_new_attr() argument 107 for (i = 0; i < ino->attr_count; i++) in ntfs_new_attr() 109 a = ino->attrs + i; in ntfs_new_attr() 119 1 /* ignore case*/, ino->vol->upcase, in ntfs_new_attr() 120 ino->vol->upcase_length)) { in ntfs_new_attr() 123 rc = ntfs_collate_names(ino->vol->upcase, in ntfs_new_attr() 124 ino->vol->upcase_length, a->name, in ntfs_new_attr() 133 rc = ntfs_collate_names(ino->vol->upcase, in ntfs_new_attr() 134 ino->vol->upcase_length, a->name, in ntfs_new_attr() 176 if (ino->attr_count % 8 == 0) in ntfs_new_attr() [all …]
|
D | attr.h | 12 int ntfs_extend_attr(ntfs_inode *ino, ntfs_attribute *attr, const __s64 len); 14 int ntfs_resize_attr(ntfs_inode *ino, ntfs_attribute *attr, __s64 newsize); 16 int ntfs_insert_attribute(ntfs_inode *ino, unsigned char* attrdata); 18 int ntfs_read_compressed(ntfs_inode *ino, ntfs_attribute *attr, __s64 offset, 21 int ntfs_write_compressed(ntfs_inode *ino, ntfs_attribute *attr, __s64 offset, 24 int ntfs_create_attr(ntfs_inode *ino, int anum, char *aname, void *data, 29 int ntfs_make_attr_nonresident(ntfs_inode *ino, ntfs_attribute *attr); 31 int ntfs_attr_allnonresident(ntfs_inode *ino); 33 int ntfs_new_attr(ntfs_inode *ino, int type, void *name, int namelen,
|
D | inode.h | 9 ntfs_attribute *ntfs_find_attr(ntfs_inode *ino, int type, char *name); 11 int ntfs_read_attr(ntfs_inode *ino, int type, char *name, __s64 offset, 14 int ntfs_write_attr(ntfs_inode *ino, int type, char *name, __s64 offset, 17 int ntfs_init_inode(ntfs_inode *ino, ntfs_volume *vol, int inum); 19 void ntfs_clear_inode(ntfs_inode *ino); 29 int ntfs_update_inode(ntfs_inode *ino); 31 int ntfs_vcn_to_lcn(ntfs_inode *ino, int vcn); 33 int ntfs_readwrite_attr(ntfs_inode *ino, ntfs_attribute *attr, __s64 offset, 36 int ntfs_allocate_attr_number(ntfs_inode *ino, int *result);
|
D | fs.c | 51 struct inode *ino; member 71 ntfs_inode *ino = NTFS_LINO2NINO(filp->f_dentry->d_inode); in ntfs_read() local 74 if (!ino) in ntfs_read() 77 (unsigned)ino->i_number, (unsigned long long)*off, in ntfs_read() 79 attr = ntfs_find_attr(ino, ino->vol->at_data, NULL); in ntfs_read() 92 error = ntfs_read_attr(ino, ino->vol->at_data, NULL, *off, &io); in ntfs_read() 135 param.ino = vfs_ino; in ntfs_write() 575 ntfs_inode *ino = 0; in ntfs_create() local 587 ino = NTFS_LINO2NINO(r); in ntfs_create() 588 error = ntfs_alloc_file(NTFS_LINO2NINO(dir), ino, (char*)d->d_name.name, in ntfs_create() [all …]
|
D | dir.c | 29 int ntfs_check_index_record(ntfs_inode *ino, char *record) in ntfs_check_index_record() argument 31 return ntfs_fixup_record(record, "INDX", ino->u.index.recordsize); in ntfs_check_index_record() 424 int ntfs_split_indexroot(ntfs_inode *ino) in ntfs_split_indexroot() argument 432 ra = ntfs_find_attr(ino, ino->vol->at_index_root, I30); in ntfs_split_indexroot() 435 bsize = ino->vol->mft_record_size; in ntfs_split_indexroot() 442 error = ntfs_read_attr(ino, ino->vol->at_index_root, I30, 0, &io); in ntfs_split_indexroot() 454 index = ntfs_malloc(ino->vol->index_record_size); in ntfs_split_indexroot() 459 walk.dir = ino; in ntfs_split_indexroot() 468 io.size = ino->vol->index_record_size; in ntfs_split_indexroot() 469 error = ntfs_read_attr(ino, ino->vol->at_index_allocation, I30, in ntfs_split_indexroot() [all …]
|
D | dir.h | 32 int ntfs_getdir_unsorted(ntfs_inode *ino, ntfs_u32 *p_high, ntfs_u32* p_low, 39 int ntfs_check_index_record(ntfs_inode *ino, char *record); 43 int ntfs_mkdir(ntfs_inode* dir,const char* name,int namelen, ntfs_inode *ino); 45 int ntfs_split_indexroot(ntfs_inode *ino); 47 int ntfs_add_index_root(ntfs_inode *ino, int type);
|
/linux-2.4.37.9/fs/sysv/ |
D | ialloc.c | 53 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) in sysv_raw_inode() argument 57 block += (ino-1) >> sb->sv_inodes_per_block_bits; in sysv_raw_inode() 62 return res + ((ino-1) & sb->sv_inodes_per_block_1); in sysv_raw_inode() 69 int i = 0, ino; in refill_free_cache() local 71 ino = SYSV_ROOT_INO+1; in refill_free_cache() 72 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() 75 while (ino <= sb->sv_ninodes) { in refill_free_cache() 77 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(sb, ino); in refill_free_cache() 81 if ((ino++ & sb->sv_inodes_per_block_1) == 0) { in refill_free_cache() 83 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() [all …]
|
D | inode.c | 147 unsigned int block, ino; in sysv_read_inode() local 150 ino = inode->i_ino; in sysv_read_inode() 151 if (!ino || ino > sb->sv_ninodes) { in sysv_read_inode() 154 kdevname(inode->i_dev), ino); in sysv_read_inode() 157 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_read_inode() 193 unsigned int ino, block; in sysv_update_inode() local 195 ino = inode->i_ino; in sysv_update_inode() 196 if (!ino || ino > sb->sv_ninodes) { in sysv_update_inode() 198 bdevname(inode->i_dev), ino); in sysv_update_inode() 201 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_update_inode()
|
/linux-2.4.37.9/fs/jffs2/ |
D | build.c | 96 D1(printk(KERN_DEBUG "Pass 1: ino #%u\n", ic->ino)); in jffs2_build_filesystem() 99 D1(printk(KERN_WARNING "Eep. jffs2_build_inode_pass1 for ino %d returned %d\n", ic->ino, ret)); in jffs2_build_filesystem() 114 …D1(printk(KERN_DEBUG "Pass 2: ino #%u, nlink %d, ic %p, nodes %p\n", ic->ino, ic->nlink, ic, ic->n… in jffs2_build_filesystem() 133 D1(printk(KERN_DEBUG "Pass 3: ino #%u, ic %p, nodes %p\n", ic->ino, ic, ic->nodes)); in jffs2_build_filesystem() 136 …D1(printk(KERN_WARNING "Why no scan struct for ino #%u which has nlink %d?\n", ic->ino, ic->nlink)… in jffs2_build_filesystem() 160 D1(printk(KERN_DEBUG "jffs2_build_inode building inode #%u\n", ic->ino)); in jffs2_build_inode_pass1() 161 if (ic->ino > c->highest_ino) in jffs2_build_inode_pass1() 162 c->highest_ino = ic->ino; in jffs2_build_inode_pass1() 164 if (!ic->scan->tmpnodes && ic->ino != 1) { in jffs2_build_inode_pass1() 165 D1(printk(KERN_DEBUG "jffs2_build_inode: ino #%u has no data nodes!\n", ic->ino)); in jffs2_build_inode_pass1() [all …]
|
D | nodelist.c | 54 … is \"%s\"->ino #%u. Old is \"%s\"->ino #%u\n", new->name, new->ino, (*prev)->name, (*prev)->ino)); in jffs2_add_fd_to_list() 58 D1(printk(KERN_DEBUG "Marking old dirent node (ino #%u) obsolete\n", (*prev)->ino)); in jffs2_add_fd_to_list() 73 …k(KERN_DEBUG "Dirent \"%s\" (hash 0x%08x, ino #%u\n", (*list)->name, (*list)->nhash, (*list)->ino); in jffs2_add_fd_to_list() 95 int jffs2_get_inode_nodes(struct jffs2_sb_info *c, ino_t ino, struct jffs2_inode_info *f, in jffs2_get_inode_nodes() argument 110 D1(printk(KERN_DEBUG "jffs2_get_inode_nodes(): ino #%lu\n", ino)); in jffs2_get_inode_nodes() 112 printk(KERN_WARNING "Eep. no nodes for ino #%lu\n", ino); in jffs2_get_inode_nodes() 157 fd->ino = node.d.ino; in jffs2_get_inode_nodes() 194 D1(printk(KERN_DEBUG "Adding fd \"%s\", ino #%u\n", fd->name, fd->ino)); in jffs2_get_inode_nodes() 269 struct jffs2_inode_cache *jffs2_get_ino_cache(struct jffs2_sb_info *c, uint32_t ino) in jffs2_get_ino_cache() argument 273 D2(printk(KERN_DEBUG "jffs2_get_ino_cache(): ino %u\n", ino)); in jffs2_get_ino_cache() [all …]
|
/linux-2.4.37.9/fs/affs/ |
D | dir.c | 62 u32 ino; in affs_readdir() local 104 ino = (u32)(long)filp->private_data; in affs_readdir() 105 if (ino && filp->f_version == inode->i_version) { in affs_readdir() 106 pr_debug("AFFS: readdir() left off=%d\n", ino); in affs_readdir() 110 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir() 111 for (i = 0; ino && i < chain_pos; i++) { in affs_readdir() 112 fh_bh = affs_bread(sb, ino); in affs_readdir() 117 ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain); in affs_readdir() 121 if (ino) in affs_readdir() 126 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir() [all …]
|
D | amigaffs.c | 38 u32 ino, hash_ino; in affs_insert_hash() local 41 ino = bh->b_blocknr; in affs_insert_hash() 44 pr_debug("AFFS: insert_hash(dir=%u, ino=%d)\n", (u32)dir->i_ino, ino); in affs_insert_hash() 63 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino); in affs_insert_hash() 65 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino); in affs_insert_hash() 67 affs_adjust_checksum(dir_bh, ino); in affs_insert_hash() 87 u32 rem_ino, hash_ino, ino; in affs_remove_hash() local 103 ino = AFFS_TAIL(sb, rem_bh)->hash_chain; in affs_remove_hash() 105 AFFS_HEAD(bh)->table[offset] = ino; in affs_remove_hash() 107 AFFS_TAIL(sb, bh)->hash_chain = ino; in affs_remove_hash() [all …]
|
/linux-2.4.37.9/fs/minix/ |
D | bitmap.c | 122 minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V1_raw_inode() argument 128 if (!ino || ino > sbi->s_ninodes) { in minix_V1_raw_inode() 130 bdevname(sb->s_dev), ino); in minix_V1_raw_inode() 133 ino--; in minix_V1_raw_inode() 135 ino / MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode() 142 return p + ino % MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode() 146 minix_V2_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V2_raw_inode() argument 153 if (!ino || ino > sbi->s_ninodes) { in minix_V2_raw_inode() 155 bdevname(sb->s_dev), ino); in minix_V2_raw_inode() 158 ino--; in minix_V2_raw_inode() [all …]
|
/linux-2.4.37.9/fs/freevxfs/ |
D | vxfs_inode.c | 66 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino) in vxfs_dumpi() argument 69 if (ino) in vxfs_dumpi() 70 printk(KERN_DEBUG "dumping vxfs inode %ld\n", ino); in vxfs_dumpi() 102 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument 107 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget() 108 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget() 120 vxfs_dumpi(vip, ino); in vxfs_blkiget() 144 __vxfs_iget(ino_t ino, struct inode *ilistp) in __vxfs_iget() argument 149 offset = (ino % (PAGE_SIZE / VXFS_ISIZE)) * VXFS_ISIZE; in __vxfs_iget() 150 pp = vxfs_get_page(ilistp->i_mapping, ino * VXFS_ISIZE / PAGE_SIZE); in __vxfs_iget() [all …]
|
/linux-2.4.37.9/fs/romfs/ |
D | inode.c | 265 int j, ino, nextfh; in romfs_readdir() local 299 ino = offset; in romfs_readdir() 302 ino = ntohl(ri.spec); in romfs_readdir() 303 if (filldir(dirent, fsname, j, offset, ino, in romfs_readdir() 460 int nextfh, ino; in romfs_read_inode() local 463 ino = i->i_ino & ROMFH_MASK; in romfs_read_inode() 468 if (romfs_copyfrom(i, &ri, ino, ROMFH_SIZE) <= 0) { in romfs_read_inode() 469 printk("romfs: read error for inode 0x%x\n", ino); in romfs_read_inode() 478 ino = ntohl(ri.spec) & ROMFH_MASK; in romfs_read_inode() 487 ino = romfs_strnlen(i, ino+ROMFH_SIZE, ROMFS_MAXFN); in romfs_read_inode() [all …]
|
/linux-2.4.37.9/fs/bfs/ |
D | dir.c | 22 static int bfs_add_entry(struct inode * dir, const char * name, int namelen, int ino); 51 if (de->ino) { in bfs_readdir() 53 if (filldir(dirent, de->name, size, f->f_pos, de->ino, DT_UNKNOWN) < 0) { in bfs_readdir() 81 unsigned long ino; in bfs_create() local 86 ino = find_first_zero_bit(s->su_imap, s->su_lasti); in bfs_create() 87 if (ino > s->su_lasti) { in bfs_create() 91 set_bit(ino, s->su_imap); in bfs_create() 101 inode->i_ino = inode->iu_dsk_ino = ino; in bfs_create() 129 unsigned long ino = le32_to_cpu(de->ino); in bfs_lookup() local 131 inode = iget(dir->i_sb, ino); in bfs_lookup() [all …]
|
D | inode.c | 37 unsigned long ino = inode->i_ino; in bfs_read_inode() local 43 if (ino < BFS_ROOT_INO || ino > inode->i_sb->su_lasti) { in bfs_read_inode() 44 printf("Bad inode number %s:%08lx\n", bdevname(dev), ino); in bfs_read_inode() 49 block = (ino - BFS_ROOT_INO)/BFS_INODES_PER_BLOCK + 1; in bfs_read_inode() 52 printf("Unable to read inode %s:%08lx\n", bdevname(dev), ino); in bfs_read_inode() 57 off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; in bfs_read_inode() 90 unsigned long ino = inode->i_ino; in bfs_write_inode() local 96 if (ino < BFS_ROOT_INO || ino > inode->i_sb->su_lasti) { in bfs_write_inode() 97 printf("Bad inode number %s:%08lx\n", bdevname(dev), ino); in bfs_write_inode() 102 block = (ino - BFS_ROOT_INO)/BFS_INODES_PER_BLOCK + 1; in bfs_write_inode() [all …]
|
/linux-2.4.37.9/fs/qnx4/ |
D | namei.c | 68 const char *name, struct qnx4_inode_entry **res_dir, int *ino) in qnx4_find_entry() argument 91 *ino = block * QNX4_INODES_PER_BLOCK + in qnx4_find_entry() 110 int ino; in qnx4_lookup() local 118 if (!(bh = qnx4_find_entry(len, dir, name, &de, &ino))) in qnx4_lookup() 123 ino = (le32_to_cpu(lnk->dl_inode_blk) - 1) * in qnx4_lookup() 129 if ((foundinode = iget(dir->i_sb, ino)) == NULL) { in qnx4_lookup() 155 int ino; in qnx4_rmdir() local 159 &de, &ino); in qnx4_rmdir() 164 if (inode->i_ino != ino) { in qnx4_rmdir() 201 int ino; in qnx4_unlink() local [all …]
|
/linux-2.4.37.9/drivers/char/ftape/zftape/ |
D | zftape-init.c | 87 static int zft_open (struct inode *ino, struct file *filep); 88 static int zft_close(struct inode *ino, struct file *filep); 89 static int zft_ioctl(struct inode *ino, struct file *filep, 110 static int zft_open(struct inode *ino, struct file *filep) in zft_open() argument 115 TRACE(ft_t_flow, "called for minor %d", MINOR(ino->i_rdev)); in zft_open() 120 if ((MINOR(ino->i_rdev) & ~(ZFT_MINOR_OP_MASK | FTAPE_NO_REWIND)) in zft_open() 128 result = _zft_open(MINOR(ino->i_rdev), filep->f_flags & O_ACCMODE); in zft_open() 145 static int zft_close(struct inode *ino, struct file *filep) in zft_close() argument 151 if (!busy_flag || MINOR(ino->i_rdev) != zft_unit) { in zft_close() 169 static int zft_ioctl(struct inode *ino, struct file *filep, in zft_ioctl() argument [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_itable.c | 70 xfs_ino_t ino, /* inode number to get data for */ in xfs_bulkstat_one() argument 88 if (!buffer || ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino || in xfs_bulkstat_one() 90 (ino == mp->m_sb.sb_uquotino || ino == mp->m_sb.sb_gquotino))) { in xfs_bulkstat_one() 105 error = xfs_iget(mp, NULL, ino, 0, XFS_ILOCK_SHARED, &ip, bno); in xfs_bulkstat_one() 157 buf->bs_ino = ino; in xfs_bulkstat_one() 255 xfs_ino_t ino; /* inode number (filesystem) */ in xfs_bulkstat() local 278 ino = (xfs_ino_t)*lastinop; in xfs_bulkstat() 280 agno = XFS_INO_TO_AGNO(mp, ino); in xfs_bulkstat() 281 agino = XFS_INO_TO_AGINO(mp, ino); in xfs_bulkstat() 283 ino != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_bulkstat() [all …]
|
/linux-2.4.37.9/fs/jfs/ |
D | namei.c | 65 ino_t ino; in jfs_create() local 96 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() 117 ino = ip->i_ino; in jfs_create() 118 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create() 180 ino_t ino; in jfs_mkdir() local 217 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_mkdir() 238 ino = ip->i_ino; in jfs_mkdir() 239 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_mkdir() 306 ino_t ino; in jfs_rmdir() local 337 ino = ip->i_ino; in jfs_rmdir() [all …]
|