/fs/sysv/ |
D | ialloc.c | 56 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) in sysv_raw_inode() argument 62 block += (ino-1) >> sbi->s_inodes_per_block_bits; in sysv_raw_inode() 67 return res + ((ino-1) & sbi->s_inodes_per_block_1); in sysv_raw_inode() 75 int i = 0, ino; in refill_free_cache() local 77 ino = SYSV_ROOT_INO+1; in refill_free_cache() 78 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() 81 while (ino <= sbi->s_ninodes) { in refill_free_cache() 83 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino); in refill_free_cache() 87 if ((ino++ & sbi->s_inodes_per_block_1) == 0) { in refill_free_cache() 89 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() [all …]
|
/fs/autofs4/ |
D | root.c | 77 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_add_active() local 78 if (ino) { in autofs4_add_active() 80 if (!ino->active_count) { in autofs4_add_active() 81 if (list_empty(&ino->active)) in autofs4_add_active() 82 list_add(&ino->active, &sbi->active_list); in autofs4_add_active() 84 ino->active_count++; in autofs4_add_active() 93 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_del_active() local 94 if (ino) { in autofs4_del_active() 96 ino->active_count--; in autofs4_del_active() 97 if (!ino->active_count) { in autofs4_del_active() [all …]
|
D | expire.c | 23 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_can_expire() local 26 if (ino == NULL) in autofs4_can_expire() 31 if (!timeout || time_after(ino->last_used + timeout, now)) in autofs4_can_expire() 38 ino->last_used = now; in autofs4_can_expire() 68 struct autofs_info *ino = autofs4_dentry_ino(top); in autofs4_mount_busy() local 69 ino->last_used = jiffies; in autofs4_mount_busy() 206 struct autofs_info *ino = autofs4_dentry_ino(top); in autofs4_direct_busy() local 207 if (ino) in autofs4_direct_busy() 208 ino->last_used = jiffies; in autofs4_direct_busy() 255 struct autofs_info *ino = autofs4_dentry_ino(p); in autofs4_tree_busy() local [all …]
|
D | inode.c | 27 struct autofs_info *ino = kzalloc(sizeof(*ino), GFP_KERNEL); in autofs4_new_ino() local 28 if (ino) { in autofs4_new_ino() 29 INIT_LIST_HEAD(&ino->active); in autofs4_new_ino() 30 INIT_LIST_HEAD(&ino->expiring); in autofs4_new_ino() 31 ino->last_used = jiffies; in autofs4_new_ino() 32 ino->sbi = sbi; in autofs4_new_ino() 34 return ino; in autofs4_new_ino() 37 void autofs4_clean_ino(struct autofs_info *ino) in autofs4_clean_ino() argument 39 ino->uid = GLOBAL_ROOT_UID; in autofs4_clean_ino() 40 ino->gid = GLOBAL_ROOT_GID; in autofs4_clean_ino() [all …]
|
D | autofs_i.h | 91 u64 ino; member 307 struct autofs_info *ino = autofs4_dentry_ino(dentry); in __autofs4_add_expiring() local 308 if (ino) { in __autofs4_add_expiring() 309 if (list_empty(&ino->expiring)) in __autofs4_add_expiring() 310 list_add(&ino->expiring, &sbi->expiring_list); in __autofs4_add_expiring() 318 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_add_expiring() local 319 if (ino) { in autofs4_add_expiring() 321 if (list_empty(&ino->expiring)) in autofs4_add_expiring() 322 list_add(&ino->expiring, &sbi->expiring_list); in autofs4_add_expiring() 331 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_del_expiring() local [all …]
|
/fs/affs/ |
D | dir.c | 55 u32 ino; in affs_readdir() local 97 ino = (u32)(long)filp->private_data; in affs_readdir() 98 if (ino && filp->f_version == inode->i_version) { in affs_readdir() 99 pr_debug("AFFS: readdir() left off=%d\n", ino); in affs_readdir() 103 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir() 104 for (i = 0; ino && i < chain_pos; i++) { in affs_readdir() 105 fh_bh = affs_bread(sb, ino); in affs_readdir() 110 ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain); in affs_readdir() 114 if (ino) in affs_readdir() 119 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir() [all …]
|
/fs/minix/ |
D | bitmap.c | 106 minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V1_raw_inode() argument 112 if (!ino || ino > sbi->s_ninodes) { in minix_V1_raw_inode() 114 sb->s_id, (long)ino); in minix_V1_raw_inode() 117 ino--; in minix_V1_raw_inode() 119 ino / MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode() 126 return p + ino % MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode() 130 minix_V2_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V2_raw_inode() argument 138 if (!ino || ino > sbi->s_ninodes) { in minix_V2_raw_inode() 140 sb->s_id, (long)ino); in minix_V2_raw_inode() 143 ino--; in minix_V2_raw_inode() [all …]
|
/fs/ocfs2/ |
D | ocfs2_trace.h | 528 TP_PROTO(unsigned long long ino, unsigned int new_cpos, 530 TP_ARGS(ino, new_cpos, clusters, depth), 532 __field(unsigned long long, ino) 538 __entry->ino = ino; 544 __entry->ino, __entry->new_cpos, 1041 TP_PROTO(unsigned long long ino, unsigned int cpos, 1044 TP_ARGS(ino, cpos, len, p_cluster, ext_flags), 1046 __field(unsigned long long, ino) 1053 __entry->ino = ino; 1060 __entry->ino, __entry->cpos, __entry->len, [all …]
|
/fs/ceph/ |
D | export.c | 31 u64 ino; member 39 u64 ino, parent_ino; member 73 cfh->ino = ceph_ino(inode); in ceph_encode_fh() 87 fh->ino = ceph_ino(inode); in ceph_encode_fh() 117 dout("__fh_to_dentry %llx\n", fh->ino); in __fh_to_dentry() 118 vino.ino = fh->ino; in __fh_to_dentry() 143 fh->ino, inode); in __fh_to_dentry() 152 dout("__fh_to_dentry %llx %p dentry %p\n", fh->ino, inode, dentry); in __fh_to_dentry() 172 cfh->ino, cfh->parent_ino, cfh->parent_name_hash); in __cfh_to_dentry() 174 vino.ino = cfh->ino; in __cfh_to_dentry() [all …]
|
D | snap.c | 92 if (new->ino < r->ino) in __insert_snap_realm() 94 else if (new->ino > r->ino) in __insert_snap_realm() 111 u64 ino) in ceph_create_snap_realm() argument 120 realm->ino = ino; in ceph_create_snap_realm() 128 dout("create_snap_realm %llx %p\n", realm->ino, realm); in ceph_create_snap_realm() 138 u64 ino) in ceph_lookup_snap_realm() argument 145 if (ino < r->ino) in ceph_lookup_snap_realm() 147 else if (ino > r->ino) in ceph_lookup_snap_realm() 150 dout("lookup_snap_realm %llx %p\n", r->ino, r); in ceph_lookup_snap_realm() 166 dout("__destroy_snap_realm %p %llx\n", realm, realm->ino); in __destroy_snap_realm() [all …]
|
/fs/hostfs/ |
D | hostfs_kern.c | 126 static char *inode_name(struct inode *ino) in inode_name() argument 131 dentry = d_find_alias(ino); in inode_name() 284 unsigned long long next, ino; in hostfs_readdir() local 296 while ((name = read_dir(dir, &next, &ino, &len, &type)) != NULL) { in hostfs_readdir() 298 ino, type); in hostfs_readdir() 306 int hostfs_file_open(struct inode *ino, struct file *file) in hostfs_file_open() argument 315 if ((mode & HOSTFS_I(ino)->mode) == mode) in hostfs_file_open() 318 mode |= HOSTFS_I(ino)->mode; in hostfs_file_open() 339 if ((mode & HOSTFS_I(ino)->mode) == mode) { in hostfs_file_open() 343 if ((mode | HOSTFS_I(ino)->mode) != mode) { in hostfs_file_open() [all …]
|
/fs/freevxfs/ |
D | vxfs_inode.c | 52 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino) in vxfs_dumpi() argument 55 if (ino) in vxfs_dumpi() 56 printk(KERN_DEBUG "dumping vxfs inode %ld\n", ino); in vxfs_dumpi() 88 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument 93 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget() 94 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget() 106 vxfs_dumpi(vip, ino); in vxfs_blkiget() 130 __vxfs_iget(ino_t ino, struct inode *ilistp) in __vxfs_iget() argument 135 offset = (ino % (PAGE_SIZE / VXFS_ISIZE)) * VXFS_ISIZE; in __vxfs_iget() 136 pp = vxfs_get_page(ilistp->i_mapping, ino * VXFS_ISIZE / PAGE_SIZE); in __vxfs_iget() [all …]
|
/fs/ubifs/ |
D | journal.c | 67 static inline void zero_ino_node_unused(struct ubifs_ino_node *ino) in zero_ino_node_unused() argument 69 memset(ino->padding1, 0, 4); in zero_ino_node_unused() 70 memset(ino->padding2, 0, 26); in zero_ino_node_unused() 457 static void pack_inode(struct ubifs_info *c, struct ubifs_ino_node *ino, in pack_inode() argument 463 ino->ch.node_type = UBIFS_INO_NODE; in pack_inode() 464 ino_key_init_flash(c, &ino->key, inode->i_ino); in pack_inode() 465 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); in pack_inode() 466 ino->atime_sec = cpu_to_le64(inode->i_atime.tv_sec); in pack_inode() 467 ino->atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in pack_inode() 468 ino->ctime_sec = cpu_to_le64(inode->i_ctime.tv_sec); in pack_inode() [all …]
|
/fs/xfs/ |
D | xfs_itable.c | 42 xfs_ino_t ino) in xfs_internal_inum() argument 44 return (ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino || in xfs_internal_inum() 46 (ino == mp->m_sb.sb_uquotino || ino == mp->m_sb.sb_gquotino))); in xfs_internal_inum() 56 xfs_ino_t ino, /* inode to get data for */ in xfs_bulkstat_one_int() argument 70 if (!buffer || xfs_internal_inum(mp, ino)) in xfs_bulkstat_one_int() 77 error = xfs_iget(mp, NULL, ino, in xfs_bulkstat_one_int() 96 buf->bs_ino = ino; in xfs_bulkstat_one_int() 169 xfs_ino_t ino, /* inode number to get data for */ in xfs_bulkstat_one() argument 175 return xfs_bulkstat_one_int(mp, ino, buffer, ubsize, in xfs_bulkstat_one() 208 xfs_ino_t ino; /* inode number (filesystem) */ in xfs_bulkstat() local [all …]
|
/fs/logfs/ |
D | inode.c | 81 static struct inode *__logfs_iget(struct super_block *sb, ino_t ino) in __logfs_iget() argument 83 struct inode *inode = iget_locked(sb, ino); in __logfs_iget() 109 struct inode *logfs_iget(struct super_block *sb, ino_t ino) in logfs_iget() argument 111 BUG_ON(ino == LOGFS_INO_MASTER); in logfs_iget() 112 BUG_ON(ino == LOGFS_INO_SEGFILE); in logfs_iget() 113 return __logfs_iget(sb, ino); in logfs_iget() 120 struct inode *logfs_safe_iget(struct super_block *sb, ino_t ino, int *is_cached) in logfs_safe_iget() argument 125 if (ino == LOGFS_INO_MASTER) in logfs_safe_iget() 127 if (ino == LOGFS_INO_SEGFILE) in logfs_safe_iget() 132 if (li->vfs_inode.i_ino == ino) { in logfs_safe_iget() [all …]
|
/fs/ext3/ |
D | ialloc.c | 83 unsigned long ino; in ext3_free_inode() local 109 ino = inode->i_ino; in ext3_free_inode() 110 ext3_debug ("freeing inode %lu\n", ino); in ext3_free_inode() 116 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext3_free_inode() 118 "reserved or nonexistent inode %lu", ino); in ext3_free_inode() 121 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_free_inode() 122 bit = (ino - 1) % EXT3_INODES_PER_GROUP(sb); in ext3_free_inode() 136 "bit already cleared for inode %lu", ino); in ext3_free_inode() 353 unsigned long ino = 0; in ext3_new_inode() local 397 ino = 0; in ext3_new_inode() [all …]
|
/fs/squashfs/ |
D | export.c | 58 __le64 ino; in squashfs_inode_lookup() local 63 err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino)); in squashfs_inode_lookup() 68 (u64) le64_to_cpu(ino)); in squashfs_inode_lookup() 70 return le64_to_cpu(ino); in squashfs_inode_lookup() 77 long long ino; in squashfs_export_iget() local 82 ino = squashfs_inode_lookup(sb, ino_num); in squashfs_export_iget() 83 if (ino >= 0) in squashfs_export_iget() 84 dentry = d_obtain_alias(squashfs_iget(sb, ino, ino_num)); in squashfs_export_iget() 97 return squashfs_export_iget(sb, fid->i32.ino); in squashfs_fh_to_dentry()
|
/fs/jffs2/ |
D | build.c | 56 dbg_fsbuild("building directory inode #%u\n", ic->ino); in jffs2_build_inode_pass1() 61 if (!fd->ino) in jffs2_build_inode_pass1() 66 child_ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_inode_pass1() 69 fd->name, fd->ino, ic->ino); in jffs2_build_inode_pass1() 77 fd->name, fd->ino, ic->ino); in jffs2_build_inode_pass1() 80 child_ic->pino_nlink = ic->ino; in jffs2_build_inode_pass1() 85 dbg_fsbuild("increased nlink for child \"%s\" (ino #%u)\n", fd->name, fd->ino); in jffs2_build_inode_pass1() 150 ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_filesystem() 202 dbg_fsbuild("removing ino #%u with nlink == zero.\n", ic->ino); in jffs2_build_remove_unlinked_inode() 214 dbg_fsbuild("inode #%u was a directory which may have children...\n", ic->ino); in jffs2_build_remove_unlinked_inode() [all …]
|
D | write.c | 41 jffs2_dbg(1, "%s(): Assigned ino# %d\n", __func__, f->inocache->ino); in jffs2_do_new_inode() 42 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_do_new_inode() 110 (alloc_mode==ALLOC_GC)?0:f->inocache->ino); in jffs2_write_dnode() 218 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent() 231 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent() 247 fd->ino = je32_to_cpu(rd->ino); in jffs2_write_dirent() 348 __func__, f->inocache->ino, offset, writelen); in jffs2_write_inode_range() 379 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_write_inode_range() 514 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_create() 516 rd->ino = ri->ino; in jffs2_do_create() [all …]
|
/fs/bfs/ |
D | dir.c | 24 int namelen, int ino); 58 if (de->ino) { in bfs_readdir() 61 le16_to_cpu(de->ino), in bfs_readdir() 94 unsigned long ino; in bfs_create() local 100 ino = find_first_zero_bit(info->si_imap, info->si_lasti + 1); in bfs_create() 101 if (ino > info->si_lasti) { in bfs_create() 106 set_bit(ino, info->si_imap); in bfs_create() 114 inode->i_ino = ino; in bfs_create() 115 BFS_I(inode)->i_dsk_ino = ino; in bfs_create() 149 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); in bfs_lookup() local [all …]
|
D | inode.c | 35 struct inode *bfs_iget(struct super_block *sb, unsigned long ino) in bfs_iget() argument 42 inode = iget_locked(sb, ino); in bfs_iget() 48 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) { in bfs_iget() 49 printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino); in bfs_iget() 53 block = (ino - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1; in bfs_iget() 57 ino); in bfs_iget() 61 off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; in bfs_iget() 100 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p) in find_inode() argument 102 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) { in find_inode() 103 printf("Bad inode number %s:%08x\n", sb->s_id, ino); in find_inode() [all …]
|
/fs/nfs/ |
D | pnfs.c | 200 pnfs_alloc_layout_hdr(struct inode *ino, gfp_t gfp_flags) in pnfs_alloc_layout_hdr() argument 202 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_alloc_layout_hdr() 203 return ld->alloc_layout_hdr(ino, gfp_flags); in pnfs_alloc_layout_hdr() 319 struct inode *ino = lseg->pls_layout->plh_inode; in pnfs_free_lseg() local 321 NFS_SERVER(ino)->pnfs_curr_ld->free_lseg(lseg); in pnfs_free_lseg() 749 struct inode *ino = lo->plh_inode; in send_layoutget() local 750 struct nfs_server *server = NFS_SERVER(ino); in send_layoutget() 766 lgp->args.inode = ino; in send_layoutget() 813 _pnfs_return_layout(struct inode *ino) in _pnfs_return_layout() argument 816 struct nfs_inode *nfsi = NFS_I(ino); in _pnfs_return_layout() [all …]
|
/fs/jfs/ |
D | namei.c | 81 ino_t ino; in jfs_create() local 124 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() 132 tblk->ino = ip->i_ino; in jfs_create() 147 ino = ip->i_ino; in jfs_create() 148 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create() 213 ino_t ino; in jfs_mkdir() local 256 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_mkdir() 264 tblk->ino = ip->i_ino; in jfs_mkdir() 279 ino = ip->i_ino; in jfs_mkdir() 280 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_mkdir() [all …]
|
/fs/ext2/ |
D | ialloc.c | 107 unsigned long ino; in ext2_free_inode() local 113 ino = inode->i_ino; in ext2_free_inode() 114 ext2_debug ("freeing inode %lu\n", ino); in ext2_free_inode() 127 if (ino < EXT2_FIRST_INO(sb) || in ext2_free_inode() 128 ino > le32_to_cpu(es->s_inodes_count)) { in ext2_free_inode() 130 "reserved or nonexistent inode %lu", ino); in ext2_free_inode() 133 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_free_inode() 134 bit = (ino - 1) % EXT2_INODES_PER_GROUP(sb); in ext2_free_inode() 143 "bit already cleared for inode %lu", ino); in ext2_free_inode() 437 ino_t ino = 0; in ext2_new_inode() local [all …]
|
/fs/ext4/ |
D | ialloc.c | 233 unsigned long ino; in ext4_free_inode() local 262 ino = inode->i_ino; in ext4_free_inode() 263 ext4_debug("freeing inode %lu\n", ino); in ext4_free_inode() 281 if (ino < EXT4_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext4_free_inode() 282 ext4_error(sb, "reserved or nonexistent inode %lu", ino); in ext4_free_inode() 285 block_group = (ino - 1) / EXT4_INODES_PER_GROUP(sb); in ext4_free_inode() 286 bit = (ino - 1) % EXT4_INODES_PER_GROUP(sb); in ext4_free_inode() 340 ext4_error(sb, "bit already cleared for inode %lu", ino); in ext4_free_inode() 665 static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino) in recently_deleted() argument 679 (ino / inodes_per_block)); in recently_deleted() [all …]
|