| /linux/arch/sparc/kernel/ |
| H A D | prom_irqtrans.c | 20 static unsigned long psycho_pcislot_imap_offset(unsigned long ino) in psycho_pcislot_imap_offset() argument 22 unsigned int bus = (ino & 0x10) >> 4; in psycho_pcislot_imap_offset() 23 unsigned int slot = (ino & 0x0c) >> 2; in psycho_pcislot_imap_offset() 40 #define psycho_iclr_offset(ino) \ argument 41 ((ino & 0x20) ? (PSYCHO_ICLR_SCSI + (((ino) & 0x1f) << 3)) : \ 42 (PSYCHO_ICLR_A_SLOT0 + (((ino) & 0x1f)<<3))) 45 unsigned int ino, in psycho_irq_build() argument 53 ino &= 0x3f; in psycho_irq_build() 54 if (ino < PSYCHO_ONBOARD_IRQ_BASE) { in psycho_irq_build() 56 imap_off = psycho_pcislot_imap_offset(ino); in psycho_irq_build() [all …]
|
| /linux/fs/autofs/ |
| H A D | expire.c | 14 struct autofs_info *ino = autofs_dentry_ino(dentry); in autofs_can_expire() local 17 if (ino == NULL) in autofs_can_expire() 22 if (!timeout || time_after(ino->last_used + timeout, jiffies)) in autofs_can_expire() 59 struct autofs_info *ino; in autofs_mount_busy() local 61 ino = autofs_dentry_ino(top); in autofs_mount_busy() 62 ino->last_used = jiffies; in autofs_mount_busy() 160 struct autofs_info *ino; in autofs_direct_busy() local 162 ino = autofs_dentry_ino(top); in autofs_direct_busy() 163 if (ino) in autofs_direct_busy() 164 ino->last_used = jiffies; in autofs_direct_busy() [all …]
|
| H A D | root.c | 70 struct autofs_info *ino; in autofs_del_active() local 72 ino = autofs_dentry_ino(dentry); in autofs_del_active() 74 list_del_init(&ino->active); in autofs_del_active() 82 struct autofs_info *ino = autofs_dentry_ino(dentry); in autofs_dir_open() local 99 if (!path_is_mountpoint(&file->f_path) && autofs_empty(ino)) { in autofs_dir_open() 111 struct autofs_info *ino = autofs_dentry_ino(de); in autofs_dentry_release() local 116 if (!ino) in autofs_dentry_release() 121 if (!list_empty(&ino->active)) in autofs_dentry_release() 122 list_del(&ino->active); in autofs_dentry_release() 123 if (!list_empty(&ino->expiring)) in autofs_dentry_release() [all …]
|
| H A D | inode.c | 14 struct autofs_info *ino; in autofs_new_ino() local 16 ino = kzalloc_obj(*ino); in autofs_new_ino() 17 if (ino) { in autofs_new_ino() 18 INIT_LIST_HEAD(&ino->active); in autofs_new_ino() 19 INIT_LIST_HEAD(&ino->expiring); in autofs_new_ino() 20 ino->last_used = jiffies; in autofs_new_ino() 21 ino->sbi = sbi; in autofs_new_ino() 22 ino->exp_timeout = -1; in autofs_new_ino() 23 ino->count = 1; in autofs_new_ino() 25 return ino; in autofs_new_ino() [all …]
|
| /linux/fs/affs/ |
| H A D | dir.c | 22 unsigned long ino; member 90 u32 ino; in affs_readdir() local 96 data->ino = 0; in affs_readdir() 117 ino = data->ino; in affs_readdir() 118 if (ino && inode_eq_iversion(inode, data->cookie)) { in affs_readdir() 119 pr_debug("readdir() left off=%d\n", ino); in affs_readdir() 123 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir() 124 for (i = 0; ino && i < chain_pos; i++) { in affs_readdir() 125 fh_bh = affs_bread(sb, ino); in affs_readdir() 131 ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain); in affs_readdir() [all …]
|
| /linux/security/ipe/ |
| H A D | eval.c | 24 #define INO_BLOCK_DEV(ino) ((ino)->i_sb->s_bdev) argument 44 static void build_ipe_bdev_ctx(struct ipe_eval_ctx *ctx, const struct inode *const ino) in build_ipe_bdev_ctx() argument 46 if (INO_BLOCK_DEV(ino)) in build_ipe_bdev_ctx() 47 ctx->ipe_bdev = ipe_bdev(INO_BLOCK_DEV(ino)); in build_ipe_bdev_ctx() 50 static void build_ipe_bdev_ctx(struct ipe_eval_ctx *ctx, const struct inode *const ino) in build_ipe_bdev_ctx() argument 58 const struct inode *const ino) in build_ipe_inode_blob_ctx() argument 60 ctx->ipe_inode = ipe_inode(ctx->ino); in build_ipe_inode_blob_ctx() 64 const struct inode *const ino) in build_ipe_inode_blob_ctx() argument 74 static void build_ipe_inode_ctx(struct ipe_eval_ctx *ctx, const struct inode *const ino) in build_ipe_inode_ctx() argument 76 ctx->ino = ino; in build_ipe_inode_ctx() [all …]
|
| /linux/fs/ocfs2/ |
| H A D | ocfs2_trace.h | 529 TP_PROTO(unsigned long long ino, unsigned int new_cpos, 531 TP_ARGS(ino, new_cpos, clusters, depth), 533 __field(unsigned long long, ino) 539 __entry->ino = ino; 545 __entry->ino, __entry->new_cpos, 1044 TP_PROTO(unsigned long long ino, unsigned int cpos, 1047 TP_ARGS(ino, cpos, len, p_cluster, ext_flags), 1049 __field(unsigned long long, ino) 1056 __entry->ino = ino; 1063 __entry->ino, __entry->cpos, __entry->len, [all …]
|
| /linux/fs/minix/ |
| H A D | bitmap.c | 107 minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V1_raw_inode() argument 113 if (!ino || ino > sbi->s_ninodes) { in minix_V1_raw_inode() 115 sb->s_id, (long)ino); in minix_V1_raw_inode() 118 ino--; in minix_V1_raw_inode() 120 ino / MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode() 127 return p + ino % MINIX_INODES_PER_BLOCK; in minix_V1_raw_inode() 131 minix_V2_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V2_raw_inode() argument 139 if (!ino || ino > sbi->s_ninodes) { in minix_V2_raw_inode() 141 sb->s_id, (long)ino); in minix_V2_raw_inode() 144 ino--; in minix_V2_raw_inode() [all …]
|
| /linux/fs/hostfs/ |
| H A D | hostfs_kern.c | 123 static char *inode_name(struct inode *ino) in inode_name() argument 128 dentry = d_find_alias(ino); in inode_name() 274 unsigned long long next, ino; in hostfs_readdir() local 287 while ((name = read_dir(dir, &next, &ino, &len, &type)) != NULL) { in hostfs_readdir() 288 if (!dir_emit(ctx, name, len, ino, type)) in hostfs_readdir() 296 static int hostfs_open(struct inode *ino, struct file *file) in hostfs_open() argument 304 if ((mode & HOSTFS_I(ino)->mode) == mode) in hostfs_open() 307 mode |= HOSTFS_I(ino)->mode; in hostfs_open() 326 mutex_lock(&HOSTFS_I(ino)->open_mutex); in hostfs_open() 328 if ((mode & HOSTFS_I(ino)->mode) == mode) { in hostfs_open() [all …]
|
| /linux/tools/cgroup/ |
| H A D | memcg_shrinker.py | 16 ino = os.stat(path).st_ino 17 cgroups[ino] = path 32 ino = int(items[0]) 34 shrinkers.append((int(items[1]), shrinker, ino)) 50 count, name, ino = (s[0], s[1], s[2]) 54 if ino == 0 or ino == 1: 58 cg = cgroups[ino] 60 cg = "unknown (%d)" % ino
|
| /linux/fs/bfs/ |
| H A D | dir.c | 24 static int bfs_add_entry(struct inode *dir, const struct qstr *child, int ino); 54 if (de->ino) { in bfs_readdir() 57 le16_to_cpu(de->ino), in bfs_readdir() 85 unsigned long ino; in bfs_create() local 91 ino = find_first_zero_bit(info->si_imap, info->si_lasti + 1); in bfs_create() 92 if (ino > info->si_lasti) { in bfs_create() 97 set_bit(ino, info->si_imap); in bfs_create() 105 inode->i_ino = ino; in bfs_create() 106 BFS_I(inode)->i_dsk_ino = ino; in bfs_create() 139 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); in bfs_lookup() local [all …]
|
| H A 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() 89 le32_to_cpu(di->i_vtype), inode->i_sb->s_id, ino); in bfs_iget() 114 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p) in find_inode() argument 116 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) { in find_inode() [all …]
|
| /linux/fs/jffs2/ |
| H A D | build.c | 58 dbg_fsbuild("building directory inode #%u\n", ic->ino); in jffs2_build_inode_pass1() 63 if (!fd->ino) in jffs2_build_inode_pass1() 68 child_ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_inode_pass1() 71 fd->name, fd->ino, ic->ino); in jffs2_build_inode_pass1() 89 dbg_fsbuild("increased nlink for child \"%s\" (ino #%u)\n", fd->name, fd->ino); in jffs2_build_inode_pass1() 153 ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_filesystem() 202 fd->name, fd->ino, ic->ino, fd->ic->pino_nlink); in jffs2_build_filesystem() 207 fd->ic->pino_nlink = ic->ino; in jffs2_build_filesystem() 249 dbg_fsbuild("removing ino #%u with nlink == zero.\n", ic->ino); in jffs2_build_remove_unlinked_inode() 261 dbg_fsbuild("inode #%u was a directory which may have children...\n", ic->ino); in jffs2_build_remove_unlinked_inode() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | dir_repair.c | 100 xfs_ino_t ino; member 220 xfs_ino_t ino; in xrep_dir_lookup_parent() local 223 error = xfs_dir_lookup(sc->tp, sc->ip, &xfs_name_dotdot, &ino, NULL); in xrep_dir_lookup_parent() 226 if (!xfs_verify_dir_ino(sc->mp, ino)) in xrep_dir_lookup_parent() 229 error = xrep_findparent_confirm(sc, &ino); in xrep_dir_lookup_parent() 233 return ino; in xrep_dir_lookup_parent() 264 xfs_ino_t ino; in xrep_dir_find_parent() local 266 ino = xrep_findparent_self_reference(rd->sc); in xrep_dir_find_parent() 267 if (ino != NULLFSINO) { in xrep_dir_find_parent() 268 xrep_findparent_scan_finish_early(&rd->pscan, ino); in xrep_dir_find_parent() 302 xrep_dir_want_salvage(struct xrep_dir * rd,const char * name,int namelen,xfs_ino_t ino) xrep_dir_want_salvage() argument 331 xrep_dir_stash_createname(struct xrep_dir * rd,const struct xfs_name * name,xfs_ino_t ino) xrep_dir_stash_createname() argument 358 xrep_dir_stash_removename(struct xrep_dir * rd,const struct xfs_name * name,xfs_ino_t ino) xrep_dir_stash_removename() argument 383 xrep_dir_salvage_entry(struct xrep_dir * rd,unsigned char * name,unsigned int namelen,xfs_ino_t ino) xrep_dir_salvage_entry() argument 441 xfs_ino_t ino; xrep_dir_salvage_sf_entry() local 456 xfs_ino_t ino; xrep_dir_salvage_data_entry() local 521 xfs_ino_t ino; xrep_dir_recover_sf() local 749 xfs_ino_t ino; xrep_dir_replay_update() local 1148 xrep_dir_scan_dirent(struct xfs_scrub * sc,struct xfs_inode * dp,xfs_dir2_dataptr_t dapos,const struct xfs_name * name,xfs_ino_t ino,void * priv) xrep_dir_scan_dirent() argument 1641 xfs_ino_t ino; xrep_dir_swap() local [all...] |
| H A D | trace.h | 155 __field(xfs_ino_t, ino) 165 __entry->ino = ip->i_ino; 175 __entry->ino, 229 __field(xfs_ino_t, ino) 239 __entry->ino = ip->i_ino; 249 __entry->ino, 334 __field(xfs_ino_t, ino) 343 __entry->ino = sc->ip->i_ino; 352 __entry->ino, 396 TP_PROTO(struct xfs_scrub *sc, xfs_ino_t ino, void *ret_ip), [all …]
|
| /linux/fs/freevxfs/ |
| H A D | vxfs_inode.c | 27 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino) in vxfs_dumpi() argument 30 if (ino) in vxfs_dumpi() 31 printk(KERN_DEBUG "dumping vxfs inode %ld\n", ino); in vxfs_dumpi() 137 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument 148 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget() 149 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget() 160 vxfs_dumpi(vip, ino); in vxfs_blkiget() 184 __vxfs_iget(struct inode *ilistp, struct vxfs_inode_info *vip, ino_t ino) in __vxfs_iget() argument 189 offset = (ino % (PAGE_SIZE / VXFS_ISIZE)) * VXFS_ISIZE; in __vxfs_iget() 190 pp = vxfs_get_page(ilistp->i_mapping, ino * VXFS_ISIZE / PAGE_SIZE); in __vxfs_iget() [all …]
|
| /linux/include/trace/events/ |
| H A D | nilfs2.h | 168 unsigned long ino, 171 TP_ARGS(inode, ino, block), 175 __field(unsigned long, ino) 181 __entry->ino = ino; 185 TP_printk("inode = %p ino = %lu block = %lu", 187 __entry->ino, 193 unsigned long ino, 197 TP_ARGS(inode, ino, blkoff, mode), 201 __field(unsigned long, ino) [all...] |
| H A D | hugetlbfs.h | 18 __field(ino_t, ino) 25 __entry->ino = inode->i_ino; 32 (unsigned long) __entry->ino, 44 __field(ino_t, ino) 54 __entry->ino = inode->i_ino; 63 MAJOR(__entry->dev), MINOR(__entry->dev), (unsigned long) __entry->ino, 91 __field(ino_t, ino) 102 __entry->ino = inode->i_ino; 112 MAJOR(__entry->dev), MINOR(__entry->dev), (unsigned long)__entry->ino, 126 __field(ino_t, ino) [all …]
|
| H A D | fs_dax.h | 15 __field(unsigned long, ino) 28 __entry->ino = inode->i_ino; 42 __entry->ino, 69 __field(unsigned long, ino) 78 __entry->ino = inode->i_ino; 88 __entry->ino, 109 __field(unsigned long, ino) 119 __entry->ino = inode->i_ino; 129 __entry->ino, 153 __field(unsigned long, ino) [all …]
|
| /linux/fs/squashfs/ |
| H A D | export.c | 45 __le64 ino; in squashfs_inode_lookup() local 55 err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino)); in squashfs_inode_lookup() 60 (u64) le64_to_cpu(ino)); in squashfs_inode_lookup() 62 return le64_to_cpu(ino); in squashfs_inode_lookup() 69 long long ino; in squashfs_export_iget() local 74 ino = squashfs_inode_lookup(sb, ino_num); in squashfs_export_iget() 75 if (ino >= 0) in squashfs_export_iget() 76 dentry = d_obtain_alias(squashfs_iget(sb, ino, ino_num)); in squashfs_export_iget() 89 return squashfs_export_iget(sb, fid->i32.ino); in squashfs_fh_to_dentry()
|
| /linux/fs/iomap/ |
| H A D | trace.h | 32 __field(u64, ino) 37 __entry->ino = inode->i_ino; 42 __entry->ino, 58 __field(u64, ino) 65 __entry->ino = inode->i_ino; 72 __entry->ino, 135 __field(u64, ino) 145 __entry->ino = inode->i_ino; 156 __entry->ino, 180 __field(u64, ino) [all …]
|
| /linux/fs/ceph/ |
| H A D | export.c | 16 u64 ino; member 23 u64 ino, parent_ino; member 30 u64 ino; member 81 sfh->parent_ino = sfh->ino; in ceph_encode_snapfh() 84 sfh->ino = ceph_ino(inode); in ceph_encode_snapfh() 117 cfh->ino = ceph_ino(inode); in ceph_encode_fh() 124 fh->ino = ceph_ino(inode); in ceph_encode_fh() 131 static struct inode *__lookup_inode(struct super_block *sb, u64 ino) in __lookup_inode() argument 138 vino.ino = ino; in __lookup_inode() 177 struct inode *ceph_lookup_inode(struct super_block *sb, u64 ino) in ceph_lookup_inode() argument [all …]
|
| /linux/fs/ubifs/ |
| H A D | journal.c | 55 static inline void zero_ino_node_unused(struct ubifs_ino_node *ino) in zero_ino_node_unused() argument 57 memset(ino->padding1, 0, 4); in zero_ino_node_unused() 58 memset(ino->padding2, 0, 26); in zero_ino_node_unused() 573 static void pack_inode(struct ubifs_info *c, struct ubifs_ino_node *ino, in pack_inode() argument 579 ino->ch.node_type = UBIFS_INO_NODE; in pack_inode() 580 ino_key_init_flash(c, &ino->key, inode->i_ino); in pack_inode() 581 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); in pack_inode() 582 ino->atime_sec = cpu_to_le64(inode_get_atime_sec(inode)); in pack_inode() 583 ino->atime_nsec = cpu_to_le32(inode_get_atime_nsec(inode)); in pack_inode() 584 ino->ctime_sec = cpu_to_le64(inode_get_ctime_sec(inode)); in pack_inode() [all …]
|
| /linux/fs/ext2/ |
| H A D | ialloc.c | 109 unsigned long ino; in ext2_free_inode() local 115 ino = inode->i_ino; in ext2_free_inode() 116 ext2_debug ("freeing inode %lu\n", ino); in ext2_free_inode() 129 if (ino < EXT2_FIRST_INO(sb) || in ext2_free_inode() 130 ino > le32_to_cpu(es->s_inodes_count)) { in ext2_free_inode() 132 "reserved or nonexistent inode %lu", ino); in ext2_free_inode() 135 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); in ext2_free_inode() 136 bit = (ino - 1) % EXT2_INODES_PER_GROUP(sb); in ext2_free_inode() 145 "bit already cleared for inode %lu", ino); in ext2_free_inode() 426 ino_t ino = 0; in ext2_new_inode() local [all …]
|
| /linux/fs/nfs/ |
| H A D | pnfs.c | 271 pnfs_alloc_layout_hdr(struct inode *ino, gfp_t gfp_flags) in pnfs_alloc_layout_hdr() argument 273 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_alloc_layout_hdr() 274 return ld->alloc_layout_hdr(ino, gfp_flags); in pnfs_alloc_layout_hdr() 1165 pnfs_alloc_init_layoutget_args(struct inode *ino, in pnfs_alloc_init_layoutget_args() argument 1171 struct nfs_server *server = pnfs_find_server(ino, ctx); in pnfs_alloc_init_layoutget_args() 1202 if (ino) { in pnfs_alloc_init_layoutget_args() 1203 loff_t i_size = i_size_read(ino); in pnfs_alloc_init_layoutget_args() 1215 lgp->args.inode = ino; in pnfs_alloc_init_layoutget_args() 1353 struct inode *ino = lo->plh_inode; in pnfs_send_layoutreturn() local 1354 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_send_layoutreturn() [all …]
|