Home
last modified time | relevance | path

Searched refs:ino (Results 1 – 25 of 190) sorted by relevance

12345678

/fs/autofs4/
Dinode.c25 static void ino_lnkfree(struct autofs_info *ino) in ino_lnkfree() argument
27 if (ino->u.symlink) { in ino_lnkfree()
28 kfree(ino->u.symlink); in ino_lnkfree()
29 ino->u.symlink = NULL; in ino_lnkfree()
33 struct autofs_info *autofs4_init_ino(struct autofs_info *ino, in autofs4_init_ino() argument
38 if (ino == NULL) { in autofs4_init_ino()
40 ino = kmalloc(sizeof(*ino), GFP_KERNEL); in autofs4_init_ino()
43 if (ino == NULL) in autofs4_init_ino()
47 ino->flags = 0; in autofs4_init_ino()
48 ino->inode = NULL; in autofs4_init_ino()
[all …]
Droot.c109 struct autofs_info *ino = autofs4_dentry_ino(dentry); in try_to_fill_dentry() local
160 if (ino) in try_to_fill_dentry()
161 ino->last_used = jiffies; in try_to_fill_dentry()
174 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_follow_link() local
190 if (ino->flags & AUTOFS_INF_EXPIRING) { in autofs4_follow_link()
374 struct autofs_info *ino; in autofs4_lookup_active() local
378 ino = list_entry(p, struct autofs_info, active); in autofs4_lookup_active()
379 dentry = ino->dentry; in autofs4_lookup_active()
426 struct autofs_info *ino; in autofs4_lookup_expiring() local
430 ino = list_entry(p, struct autofs_info, expiring); in autofs4_lookup_expiring()
[all …]
Dexpire.c23 struct autofs_info *ino = autofs4_dentry_ino(dentry); in autofs4_can_expire() local
26 if (ino == NULL) in autofs4_can_expire()
35 if (!timeout || time_after(ino->last_used + timeout, now)) in autofs4_can_expire()
42 ino->last_used = now; in autofs4_can_expire()
79 struct autofs_info *ino = autofs4_dentry_ino(top); in autofs4_mount_busy() local
80 ino->last_used = jiffies; in autofs4_mount_busy()
129 struct autofs_info *ino = autofs4_dentry_ino(top); in autofs4_direct_busy() local
130 if (ino) in autofs4_direct_busy()
131 ino->last_used = jiffies; in autofs4_direct_busy()
185 struct autofs_info *ino = autofs4_dentry_ino(p); in autofs4_tree_busy() local
[all …]
/fs/sysv/
Dialloc.c55 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) in sysv_raw_inode() argument
61 block += (ino-1) >> sbi->s_inodes_per_block_bits; in sysv_raw_inode()
66 return res + ((ino-1) & sbi->s_inodes_per_block_1); in sysv_raw_inode()
74 int i = 0, ino; in refill_free_cache() local
76 ino = SYSV_ROOT_INO+1; in refill_free_cache()
77 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
80 while (ino <= sbi->s_ninodes) { in refill_free_cache()
82 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino); in refill_free_cache()
86 if ((ino++ & sbi->s_inodes_per_block_1) == 0) { in refill_free_cache()
88 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
[all …]
/fs/affs/
Ddir.c55 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 …]
Damigaffs.c31 u32 ino, hash_ino; in affs_insert_hash() local
34 ino = bh->b_blocknr; in affs_insert_hash()
37 pr_debug("AFFS: insert_hash(dir=%u, ino=%d)\n", (u32)dir->i_ino, ino); in affs_insert_hash()
56 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino); in affs_insert_hash()
58 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino); in affs_insert_hash()
60 affs_adjust_checksum(dir_bh, ino); in affs_insert_hash()
81 __be32 ino; in affs_remove_hash() local
97 ino = AFFS_TAIL(sb, rem_bh)->hash_chain; in affs_remove_hash()
99 AFFS_HEAD(bh)->table[offset] = ino; in affs_remove_hash()
101 AFFS_TAIL(sb, bh)->hash_chain = ino; in affs_remove_hash()
[all …]
/fs/minix/
Dbitmap.c115 minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V1_raw_inode() argument
121 if (!ino || ino > sbi->s_ninodes) { in minix_V1_raw_inode()
123 sb->s_id, (long)ino); in minix_V1_raw_inode()
126 ino--; in minix_V1_raw_inode()
128 ino / MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode()
135 return p + ino % MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode()
139 minix_V2_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V2_raw_inode() argument
147 if (!ino || ino > sbi->s_ninodes) { in minix_V2_raw_inode()
149 sb->s_id, (long)ino); in minix_V2_raw_inode()
152 ino--; in minix_V2_raw_inode()
[all …]
/fs/hostfs/
Dhostfs_kern.c124 static char *inode_name(struct inode *ino, int extra) in inode_name() argument
128 dentry = list_entry(ino->i_dentry.next, struct dentry, d_alias); in inode_name()
132 static int read_name(struct inode *ino, char *name) in read_name() argument
145 err = stat_file(name, &i_ino, &i_mode, &i_nlink, &ino->i_uid, in read_name()
146 &ino->i_gid, &i_size, &ino->i_atime, &ino->i_mtime, in read_name()
147 &ino->i_ctime, &i_blksize, &i_blocks, -1); in read_name()
151 ino->i_ino = i_ino; in read_name()
152 ino->i_mode = i_mode; in read_name()
153 ino->i_nlink = i_nlink; in read_name()
154 ino->i_size = i_size; in read_name()
[all …]
/fs/freevxfs/
Dvxfs_inode.c52 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/xfs/
Dxfs_itable.c45 xfs_ino_t ino) in xfs_internal_inum() argument
47 return (ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino || in xfs_internal_inum()
49 (ino == mp->m_sb.sb_uquotino || ino == mp->m_sb.sb_gquotino))); in xfs_internal_inum()
55 xfs_ino_t ino, /* inode number to get data for */ in xfs_bulkstat_one_iget() argument
64 error = xfs_iget(mp, NULL, ino, in xfs_bulkstat_one_iget()
81 buf->bs_ino = ino; in xfs_bulkstat_one_iget()
127 xfs_ino_t ino, /* inode number to get data for */ in xfs_bulkstat_one_dinode() argument
150 buf->bs_ino = ino; in xfs_bulkstat_one_dinode()
215 xfs_ino_t ino, /* inode number to get data for */ in xfs_bulkstat_one_int() argument
231 if (!buffer || xfs_internal_inum(mp, ino)) in xfs_bulkstat_one_int()
[all …]
Dxfs_dir2_sf.c612 xfs_ino_t ino; /* entry inode number */ in xfs_dir2_sf_check() local
621 ino = xfs_dir2_sf_get_inumber(sfp, &sfp->hdr.parent); in xfs_dir2_sf_check()
622 i8count = ino > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_sf_check()
628 ino = xfs_dir2_sf_get_inumber(sfp, xfs_dir2_sf_inumberp(sfep)); in xfs_dir2_sf_check()
629 i8count += ino > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_sf_check()
710 xfs_ino_t ino; in xfs_dir2_sf_getdents() local
751 ino = dp->i_ino; in xfs_dir2_sf_getdents()
753 ino += mp->m_inoadd; in xfs_dir2_sf_getdents()
755 if (filldir(dirent, ".", 1, dot_offset & 0x7fffffff, ino, DT_DIR)) { in xfs_dir2_sf_getdents()
765 ino = xfs_dir2_sf_get_inumber(sfp, &sfp->hdr.parent); in xfs_dir2_sf_getdents()
[all …]
/fs/ubifs/
Djournal.c67 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()
451 static void pack_inode(struct ubifs_info *c, struct ubifs_ino_node *ino, in pack_inode() argument
457 ino->ch.node_type = UBIFS_INO_NODE; in pack_inode()
458 ino_key_init_flash(c, &ino->key, inode->i_ino); in pack_inode()
459 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); in pack_inode()
460 ino->atime_sec = cpu_to_le64(inode->i_atime.tv_sec); in pack_inode()
461 ino->atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in pack_inode()
462 ino->ctime_sec = cpu_to_le64(inode->i_ctime.tv_sec); in pack_inode()
[all …]
/fs/squashfs/
Dexport.c58 __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()
Dinode.c79 struct inode *squashfs_iget(struct super_block *sb, long long ino, in squashfs_iget() argument
92 err = squashfs_read_inode(inode, ino); in squashfs_iget()
107 int squashfs_read_inode(struct inode *inode, long long ino) in squashfs_read_inode() argument
111 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
112 int err, type, offset = SQUASHFS_INODE_OFFSET(ino); in squashfs_read_inode()
130 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
131 offset = SQUASHFS_INODE_OFFSET(ino); in squashfs_read_inode()
174 "%llx, offset %x\n", SQUASHFS_INODE_BLK(ino), in squashfs_read_inode()
219 "%llx, offset %x\n", SQUASHFS_INODE_BLK(ino), in squashfs_read_inode()
242 SQUASHFS_INODE_BLK(ino), offset, in squashfs_read_inode()
[all …]
/fs/jffs2/
Dbuild.c53 dbg_fsbuild("building directory inode #%u\n", ic->ino); in jffs2_build_inode_pass1()
58 if (!fd->ino) in jffs2_build_inode_pass1()
63 child_ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_inode_pass1()
66 fd->name, fd->ino, ic->ino); in jffs2_build_inode_pass1()
74 fd->name, fd->ino, ic->ino); in jffs2_build_inode_pass1()
77 child_ic->pino_nlink = ic->ino; in jffs2_build_inode_pass1()
82 dbg_fsbuild("increased nlink for child \"%s\" (ino #%u)\n", fd->name, fd->ino); in jffs2_build_inode_pass1()
147 ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_filesystem()
199 dbg_fsbuild("removing ino #%u with nlink == zero.\n", ic->ino); in jffs2_build_remove_unlinked_inode()
211 dbg_fsbuild("inode #%u was a directory which may have children...\n", ic->ino); in jffs2_build_remove_unlinked_inode()
[all …]
Dwrite.c40 D1(printk(KERN_DEBUG "jffs2_do_new_inode(): Assigned ino# %d\n", f->inocache->ino)); in jffs2_do_new_inode()
41 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_do_new_inode()
107 (alloc_mode==ALLOC_GC)?0:f->inocache->ino); in jffs2_write_dnode()
211 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent()
224 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent()
240 fd->ino = je32_to_cpu(rd->ino); in jffs2_write_dirent()
338 f->inocache->ino, offset, writelen)); in jffs2_write_inode_range()
368 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_write_inode_range()
500 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_create()
502 rd->ino = ri->ino; in jffs2_do_create()
[all …]
/fs/ext3/
Dialloc.c93 unsigned long ino; in ext3_free_inode() local
119 ino = inode->i_ino; in ext3_free_inode()
120 ext3_debug ("freeing inode %lu\n", ino); in ext3_free_inode()
137 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext3_free_inode()
139 "reserved or nonexistent inode %lu", ino); in ext3_free_inode()
142 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); in ext3_free_inode()
143 bit = (ino - 1) % EXT3_INODES_PER_GROUP(sb); in ext3_free_inode()
157 "bit already cleared for inode %lu", ino); in ext3_free_inode()
425 unsigned long ino = 0; in ext3_new_inode() local
471 ino = 0; in ext3_new_inode()
[all …]
/fs/bfs/
Dinode.c35 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()
102 unsigned int ino = (u16)inode->i_ino; in bfs_write_inode() local
109 dprintf("ino=%08x\n", ino); in bfs_write_inode()
111 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) { in bfs_write_inode()
[all …]
Ddir.c25 int namelen, int ino);
59 if (de->ino) { in bfs_readdir()
62 le16_to_cpu(de->ino), in bfs_readdir()
95 unsigned long ino; in bfs_create() local
101 ino = find_first_zero_bit(info->si_imap, info->si_lasti); in bfs_create()
102 if (ino > info->si_lasti) { in bfs_create()
107 set_bit(ino, info->si_imap); in bfs_create()
117 inode->i_ino = ino; in bfs_create()
118 BFS_I(inode)->i_dsk_ino = ino; in bfs_create()
152 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); in bfs_lookup() local
[all …]
/fs/qnx4/
Dnamei.c69 const char *name, struct qnx4_inode_entry **res_dir, int *ino) in qnx4_find_entry() argument
92 *ino = block * QNX4_INODES_PER_BLOCK + in qnx4_find_entry()
111 int ino; in qnx4_lookup() local
120 if (!(bh = qnx4_find_entry(len, dir, name, &de, &ino))) in qnx4_lookup()
125 ino = (le32_to_cpu(lnk->dl_inode_blk) - 1) * in qnx4_lookup()
131 foundinode = qnx4_iget(dir->i_sb, ino); in qnx4_lookup()
162 int ino; in qnx4_rmdir() local
167 &de, &ino); in qnx4_rmdir()
173 if (inode->i_ino != ino) { in qnx4_rmdir()
210 int ino; in qnx4_unlink() local
[all …]
/fs/jfs/
Dnamei.c80 ino_t ino; in jfs_create() local
121 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create()
129 tblk->ino = ip->i_ino; in jfs_create()
144 ino = ip->i_ino; in jfs_create()
145 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create()
210 ino_t ino; in jfs_mkdir() local
257 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_mkdir()
265 tblk->ino = ip->i_ino; in jfs_mkdir()
280 ino = ip->i_ino; in jfs_mkdir()
281 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_mkdir()
[all …]
/fs/romfs/
Dinode.c287 int j, ino, nextfh; in romfs_readdir() local
323 ino = offset; in romfs_readdir()
326 ino = be32_to_cpu(ri.spec); in romfs_readdir()
327 if (filldir(dirent, fsname, j, offset, ino, in romfs_readdir()
491 romfs_iget(struct super_block *sb, unsigned long ino) in romfs_iget() argument
497 ino &= ROMFH_MASK; in romfs_iget()
498 i = iget_locked(sb, ino); in romfs_iget()
508 if (romfs_copyfrom(i, &ri, ino, ROMFH_SIZE) <= 0) { in romfs_iget()
510 ino); in romfs_iget()
520 ino = be32_to_cpu(ri.spec) & ROMFH_MASK; in romfs_iget()
[all …]
/fs/ext4/
Dialloc.c183 unsigned long ino; in ext4_free_inode() local
211 ino = inode->i_ino; in ext4_free_inode()
212 ext4_debug("freeing inode %lu\n", ino); in ext4_free_inode()
234 if (ino < EXT4_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext4_free_inode()
236 "reserved or nonexistent inode %lu", ino); in ext4_free_inode()
239 block_group = (ino - 1) / EXT4_INODES_PER_GROUP(sb); in ext4_free_inode()
240 bit = (ino - 1) % EXT4_INODES_PER_GROUP(sb); in ext4_free_inode()
256 "bit already cleared for inode %lu", ino); in ext4_free_inode()
612 unsigned long ino, ext4_group_t group, int mode) in ext4_claim_inode() argument
619 if (ext4_set_bit(ino, inode_bitmap_bh->b_data)) { in ext4_claim_inode()
[all …]
/fs/ext2/
Dialloc.c108 unsigned long ino; in ext2_free_inode() local
114 ino = inode->i_ino; in ext2_free_inode()
115 ext2_debug ("freeing inode %lu\n", ino); in ext2_free_inode()
134 if (ino < EXT2_FIRST_INO(sb) || in ext2_free_inode()
135 ino > le32_to_cpu(es->s_inodes_count)) { in ext2_free_inode()
137 "reserved or nonexistent inode %lu", ino); in ext2_free_inode()
140 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_free_inode()
141 bit = (ino - 1) % EXT2_INODES_PER_GROUP(sb); in ext2_free_inode()
151 "bit already cleared for inode %lu", ino); in ext2_free_inode()
444 ino_t ino = 0; in ext2_new_inode() local
[all …]
/fs/efs/
Dnamei.c80 static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino, in efs_nfs_get_inode() argument
85 if (ino == 0) in efs_nfs_get_inode()
87 inode = efs_iget(sb, ino); in efs_nfs_get_inode()
116 efs_ino_t ino; in efs_get_parent() local
119 ino = efs_find_entry(child->d_inode, "..", 2); in efs_get_parent()
120 if (ino) in efs_get_parent()
121 parent = d_obtain_alias(efs_iget(child->d_inode->i_sb, ino)); in efs_get_parent()

12345678