Searched refs:ino (Results 1 - 200 of 410) sorted by relevance

123

/linux-4.1.27/fs/affs/
H A Ddir.c54 u32 ino; affs_readdir() local
57 pr_debug("%s(ino=%lu,f_pos=%llx)\n", __func__, inode->i_ino, ctx->pos); affs_readdir()
81 ino = (u32)(long)file->private_data; affs_readdir()
82 if (ino && file->f_version == inode->i_version) { affs_readdir()
83 pr_debug("readdir() left off=%d\n", ino); affs_readdir()
87 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); affs_readdir()
88 for (i = 0; ino && i < chain_pos; i++) { affs_readdir()
89 fh_bh = affs_bread(sb, ino); affs_readdir()
95 ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain); affs_readdir()
99 if (ino) affs_readdir()
104 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); affs_readdir()
105 if (!ino) affs_readdir()
110 fh_bh = affs_bread(sb, ino); affs_readdir()
113 "Cannot read block %d", ino); affs_readdir()
120 pr_debug("readdir(): dir_emit(\"%.*s\", ino=%u), hash=%d, f_pos=%llx\n", affs_readdir()
121 namelen, name, ino, hash_pos, ctx->pos); affs_readdir()
123 if (!dir_emit(ctx, name, namelen, ino, DT_UNKNOWN)) affs_readdir()
126 ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain); affs_readdir()
129 } while (ino); affs_readdir()
133 file->private_data = (void *)(long)ino; affs_readdir()
H A Damigaffs.c27 u32 ino, hash_ino; affs_insert_hash() local
30 ino = bh->b_blocknr; affs_insert_hash()
33 pr_debug("%s(dir=%lu, ino=%d)\n", __func__, dir->i_ino, ino); affs_insert_hash()
52 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino); affs_insert_hash()
54 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino); affs_insert_hash()
56 affs_adjust_checksum(dir_bh, ino); affs_insert_hash()
77 __be32 ino; affs_remove_hash() local
83 pr_debug("%s(dir=%lu, ino=%d, hashval=%d)\n", __func__, dir->i_ino, affs_remove_hash()
94 ino = AFFS_TAIL(sb, rem_bh)->hash_chain; affs_remove_hash()
96 AFFS_HEAD(bh)->table[offset] = ino; affs_remove_hash()
98 AFFS_TAIL(sb, bh)->hash_chain = ino; affs_remove_hash()
99 affs_adjust_checksum(bh, be32_to_cpu(ino) - hash_ino); affs_remove_hash()
144 u32 link_ino, ino; affs_remove_link() local
155 /* we can't remove the head of the link, as its blocknr is still used as ino, affs_remove_link()
198 while ((ino = be32_to_cpu(AFFS_TAIL(sb, bh)->link_chain)) != 0) { affs_remove_link()
199 if (ino == link_ino) { affs_remove_link()
218 bh = affs_bread(sb, ino); affs_remove_link()
H A Dsymlink.c24 pr_debug("follow_link(ino=%lu)\n", inode->i_ino); affs_symlink_readpage()
H A Dnamei.c231 u32 ino = bh->b_blocknr; affs_lookup() local
233 /* store the real header ino in d_fsdata for faster lookups */ affs_lookup()
234 dentry->d_fsdata = (void *)(long)ino; affs_lookup()
239 ino = be32_to_cpu(AFFS_TAIL(sb, bh)->original); affs_lookup()
242 inode = affs_iget(sb, ino); affs_lookup()
H A Dinode.c16 struct inode *affs_iget(struct super_block *sb, unsigned long ino) affs_iget() argument
27 inode = iget_locked(sb, ino); affs_iget()
260 pr_debug("evict_inode(ino=%lu, nlink=%u)\n", affs_evict_inode()
/linux-4.1.27/fs/sysv/
H A Dialloc.c56 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) sysv_raw_inode() argument
62 block += (ino-1) >> sbi->s_inodes_per_block_bits; sysv_raw_inode()
67 return res + ((ino-1) & sbi->s_inodes_per_block_1); sysv_raw_inode()
75 int i = 0, ino; refill_free_cache() local
77 ino = SYSV_ROOT_INO+1; refill_free_cache()
78 raw_inode = sysv_raw_inode(sb, ino, &bh); refill_free_cache()
81 while (ino <= sbi->s_ninodes) { refill_free_cache()
83 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino); refill_free_cache()
87 if ((ino++ & sbi->s_inodes_per_block_1) == 0) { refill_free_cache()
89 raw_inode = sysv_raw_inode(sb, ino, &bh); refill_free_cache()
104 unsigned int ino; sysv_free_inode() local
110 ino = inode->i_ino; sysv_free_inode()
111 if (ino <= SYSV_ROOT_INO || ino > sbi->s_ninodes) { sysv_free_inode()
115 raw_inode = sysv_raw_inode(sb, ino, &bh); sysv_free_inode()
124 *sv_sb_fic_inode(sb,count++) = cpu_to_fs16(sbi, ino); sysv_free_inode()
140 sysv_ino_t ino; sysv_new_inode() local
161 ino = *sv_sb_fic_inode(sb,--count); sysv_new_inode()
166 inode->i_ino = fs16_to_cpu(sbi, ino); sysv_new_inode()
186 int ino, count, sb_count; sysv_count_free_inodes() local
197 ino = SYSV_ROOT_INO+1; sysv_count_free_inodes()
198 raw_inode = sysv_raw_inode(sb, ino, &bh); sysv_count_free_inodes()
201 while (ino <= sbi->s_ninodes) { sysv_count_free_inodes()
204 if ((ino++ & sbi->s_inodes_per_block_1) == 0) { sysv_count_free_inodes()
206 raw_inode = sysv_raw_inode(sb, ino, &bh); sysv_count_free_inodes()
H A Dinode.c177 struct inode *sysv_iget(struct super_block *sb, unsigned int ino) sysv_iget() argument
186 if (!ino || ino > sbi->s_ninodes) { sysv_iget()
188 sb->s_id, ino); sysv_iget()
192 inode = iget_locked(sb, ino); sysv_iget()
198 raw_inode = sysv_raw_inode(sb, ino, &bh); sysv_iget()
204 /* SystemV FS: kludge permissions if ino==SYSV_ROOT_INO ?? */ sysv_iget()
244 unsigned int ino, block; __sysv_write_inode() local
247 ino = inode->i_ino; __sysv_write_inode()
248 if (!ino || ino > sbi->s_ninodes) { __sysv_write_inode()
250 inode->i_sb->s_id, ino); __sysv_write_inode()
253 raw_inode = sysv_raw_inode(sb, ino, &bh); __sysv_write_inode()
279 sb->s_id, ino); __sysv_write_inode()
H A Dnamei.c48 ino_t ino; sysv_lookup() local
52 ino = sysv_inode_by_name(dentry); sysv_lookup()
54 if (ino) { sysv_lookup()
55 inode = sysv_iget(dir->i_sb, ino); sysv_lookup()
/linux-4.1.27/include/trace/events/
H A Dext3.h16 __field( ino_t, ino )
25 __entry->ino = inode->i_ino;
32 TP_printk("dev %d,%d ino %lu mode 0%o uid %u gid %u blocks %lu",
34 (unsigned long) __entry->ino,
68 __field( ino_t, ino )
75 __entry->ino = inode->i_ino;
80 TP_printk("dev %d,%d ino %lu dir %lu mode 0%o",
82 (unsigned long) __entry->ino,
93 __field( ino_t, ino )
99 __entry->ino = inode->i_ino;
103 TP_printk("dev %d,%d ino %lu nlink %d",
105 (unsigned long) __entry->ino, __entry->nlink)
115 __field( ino_t, ino )
121 __entry->ino = inode->i_ino;
125 TP_printk("dev %d,%d ino %lu drop %d",
127 (unsigned long) __entry->ino, __entry->drop)
137 __field( ino_t, ino )
143 __entry->ino = inode->i_ino;
147 TP_printk("dev %d,%d ino %lu caller %pS",
149 (unsigned long) __entry->ino, (void *)__entry->ip)
160 __field( ino_t, ino )
168 __entry->ino = inode->i_ino;
174 TP_printk("dev %d,%d ino %lu pos %llu len %u flags %u",
176 (unsigned long) __entry->ino,
189 __field( ino_t, ino )
197 __entry->ino = inode->i_ino;
203 TP_printk("dev %d,%d ino %lu pos %llu len %u copied %u",
205 (unsigned long) __entry->ino,
241 __field( ino_t, ino )
248 __entry->ino = page->mapping->host->i_ino;
252 TP_printk("dev %d,%d ino %lu page_index %lu",
254 (unsigned long) __entry->ino, __entry->index)
301 __field( ino_t, ino )
310 __entry->ino = page->mapping->host->i_ino;
314 TP_printk("dev %d,%d ino %lu page_index %lu offset %u length %u",
316 (unsigned long) __entry->ino,
352 __field( ino_t, ino )
359 __entry->ino = inode->i_ino;
364 TP_printk("dev %d,%d ino %lu count %lu goal %lu ",
366 (unsigned long) __entry->ino,
378 __field( ino_t, ino )
386 __entry->ino = inode->i_ino;
392 TP_printk("dev %d,%d ino %lu count %lu block %lu goal %lu",
394 (unsigned long) __entry->ino,
407 __field( ino_t, ino )
415 __entry->ino = inode->i_ino;
421 TP_printk("dev %d,%d ino %lu mode 0%o block %lu count %lu",
423 (unsigned long) __entry->ino,
434 __field( ino_t, ino )
443 __entry->ino = d_inode(dentry)->i_ino;
448 TP_printk("dev %d,%d ino %lu parent %ld datasync %d ",
450 (unsigned long) __entry->ino,
461 __field( ino_t, ino )
467 __entry->ino = inode->i_ino;
471 TP_printk("dev %d,%d ino %lu ret %d",
473 (unsigned long) __entry->ino,
530 __field( ino_t, ino )
537 __entry->ino = inode->i_ino;
541 TP_printk("dev %d,%d ino %lu start %lu end %lu",
543 (unsigned long)__entry->ino, __entry->start,
599 __field( ino_t, ino )
607 __entry->ino = inode->i_ino;
613 TP_printk("dev %d,%d ino %lu mode 0%o is_metadata %d block %lu",
615 (unsigned long) __entry->ino,
646 __field( ino_t, ino )
654 __entry->ino = inode->i_ino;
661 TP_printk("dev %d,%d ino %lu pos %llu len %lu rw %d",
663 (unsigned long) __entry->ino,
675 __field( ino_t, ino )
684 __entry->ino = inode->i_ino;
692 TP_printk("dev %d,%d ino %lu pos %llu len %lu rw %d ret %d",
694 (unsigned long) __entry->ino,
706 __field( ino_t, ino )
713 __entry->ino = d_inode(dentry)->i_ino;
718 TP_printk("dev %d,%d ino %lu size %lld parent %ld",
720 (unsigned long) __entry->ino,
731 __field( ino_t, ino )
737 __entry->ino = d_inode(dentry)->i_ino;
742 TP_printk("dev %d,%d ino %lu ret %d",
744 (unsigned long) __entry->ino,
754 __field( ino_t, ino )
760 __entry->ino = inode->i_ino;
765 TP_printk("dev %d,%d ino %lu blocks %lu",
767 (unsigned long) __entry->ino, (unsigned long) __entry->blocks)
791 __field( ino_t, ino )
799 __entry->ino = inode->i_ino;
806 TP_printk("dev %d,%d ino %lu lblk %lu len %lu create %u",
808 (unsigned long) __entry->ino,
819 __field( ino_t, ino )
828 __entry->ino = inode->i_ino;
836 TP_printk("dev %d,%d ino %lu lblk %lu pblk %lu len %lu ret %d",
838 (unsigned long) __entry->ino,
849 __field( ino_t, ino )
854 __entry->ino = inode->i_ino;
858 TP_printk("dev %d,%d ino %lu",
860 (unsigned long) __entry->ino)
H A Dext4.h83 __field( ino_t, ino )
93 __entry->ino = inode->i_ino;
99 TP_printk("dev %d,%d orig_ino %lu ino %lu mode 0%o uid %u gid %u",
102 (unsigned long) __entry->ino, __entry->mode,
113 __field( ino_t, ino )
122 __entry->ino = inode->i_ino;
129 TP_printk("dev %d,%d ino %lu mode 0%o uid %u gid %u blocks %llu",
131 (unsigned long) __entry->ino, __entry->mode,
164 __field( ino_t, ino )
171 __entry->ino = inode->i_ino;
176 TP_printk("dev %d,%d ino %lu dir %lu mode 0%o",
178 (unsigned long) __entry->ino,
189 __field( ino_t, ino )
195 __entry->ino = inode->i_ino;
199 TP_printk("dev %d,%d ino %lu nlink %d",
201 (unsigned long) __entry->ino, __entry->nlink)
211 __field( ino_t, ino )
217 __entry->ino = inode->i_ino;
221 TP_printk("dev %d,%d ino %lu drop %d",
223 (unsigned long) __entry->ino, __entry->drop)
233 __field( ino_t, ino )
239 __entry->ino = inode->i_ino;
243 TP_printk("dev %d,%d ino %lu caller %pS",
245 (unsigned long) __entry->ino, (void *)__entry->ip)
255 __field( ino_t, ino )
261 __entry->ino = inode->i_ino;
265 TP_printk("dev %d,%d ino %lu new_size %lld",
267 (unsigned long) __entry->ino,
280 __field( ino_t, ino )
288 __entry->ino = inode->i_ino;
294 TP_printk("dev %d,%d ino %lu pos %lld len %u flags %u",
296 (unsigned long) __entry->ino,
324 __field( ino_t, ino )
332 __entry->ino = inode->i_ino;
338 TP_printk("dev %d,%d ino %lu pos %lld len %u copied %u",
340 (unsigned long) __entry->ino,
375 __field( ino_t, ino )
388 __entry->ino = inode->i_ino;
399 TP_printk("dev %d,%d ino %lu nr_to_write %ld pages_skipped %ld "
403 (unsigned long) __entry->ino, __entry->nr_to_write,
418 __field( ino_t, ino )
426 __entry->ino = inode->i_ino;
432 TP_printk("dev %d,%d ino %lu first_page %lu nr_to_write %ld "
435 (unsigned long) __entry->ino, __entry->first_page,
446 __field( ino_t, ino )
454 __entry->ino = inode->i_ino;
460 TP_printk("dev %d,%d ino %lu lblk %llu len %u flags %s",
462 (unsigned long) __entry->ino, __entry->lblk, __entry->len,
474 __field( ino_t, ino )
484 __entry->ino = inode->i_ino;
492 TP_printk("dev %d,%d ino %lu ret %d pages_written %d pages_skipped %ld "
495 (unsigned long) __entry->ino, __entry->ret,
508 __field( ino_t, ino )
515 __entry->ino = page->mapping->host->i_ino;
519 TP_printk("dev %d,%d ino %lu page_index %lu",
521 (unsigned long) __entry->ino,
553 __field( ino_t, ino )
561 __entry->ino = page->mapping->host->i_ino;
567 TP_printk("dev %d,%d ino %lu page_index %lu offset %u length %u",
569 (unsigned long) __entry->ino,
618 __field( ino_t, ino )
627 __entry->ino = ac->ac_inode->i_ino;
633 TP_printk("dev %d,%d ino %lu pstart %llu len %u lstart %llu",
635 (unsigned long) __entry->ino,
663 __field( ino_t, ino )
671 __entry->ino = pa->pa_inode->i_ino;
676 TP_printk("dev %d,%d ino %lu block %llu count %u",
678 (unsigned long) __entry->ino,
712 __field( ino_t, ino )
718 __entry->ino = inode->i_ino;
721 TP_printk("dev %d,%d ino %lu",
723 (unsigned long) __entry->ino)
754 __field( ino_t, ino )
767 __entry->ino = ar->inode->i_ino;
778 TP_printk("dev %d,%d ino %lu flags %s len %u lblk %u goal %llu "
781 (unsigned long) __entry->ino, show_mballoc_flags(__entry->flags),
794 __field( ino_t, ino )
808 __entry->ino = ar->inode->i_ino;
820 TP_printk("dev %d,%d ino %lu flags %s len %u block %llu lblk %u "
823 (unsigned long) __entry->ino, show_mballoc_flags(__entry->flags),
837 __field( ino_t, ino )
846 __entry->ino = inode->i_ino;
853 TP_printk("dev %d,%d ino %lu mode 0%o block %llu count %lu flags %s",
855 (unsigned long) __entry->ino,
867 __field( ino_t, ino )
876 __entry->ino = d_inode(dentry)->i_ino;
881 TP_printk("dev %d,%d ino %lu parent %lu datasync %d ",
883 (unsigned long) __entry->ino,
894 __field( ino_t, ino )
900 __entry->ino = inode->i_ino;
904 TP_printk("dev %d,%d ino %lu ret %d",
906 (unsigned long) __entry->ino,
938 __field( ino_t, ino )
945 __entry->ino = inode->i_ino;
950 TP_printk("dev %d,%d ino %lu data_blocks %u meta_blocks %u",
952 (unsigned long) __entry->ino,
963 __field( ino_t, ino )
986 __entry->ino = ac->ac_inode->i_ino;
1011 (unsigned long) __entry->ino,
1030 __field( ino_t, ino )
1043 __entry->ino = ac->ac_inode->i_ino;
1056 (unsigned long) __entry->ino,
1074 __field( ino_t, ino )
1082 __entry->ino = inode ? inode->i_ino : 0;
1090 (unsigned long) __entry->ino,
1124 __field( ino_t, ino )
1132 __entry->ino = inode->i_ino;
1138 TP_printk("dev %d,%d ino %lu mode 0%o is_metadata %d block %llu",
1140 (unsigned long) __entry->ino,
1151 __field( ino_t, ino )
1163 __entry->ino = inode->i_ino;
1176 TP_printk("dev %d,%d ino %lu mode 0%o i_blocks %llu used_blocks %d "
1180 (unsigned long) __entry->ino,
1194 __field( ino_t, ino )
1204 __entry->ino = inode->i_ino;
1212 TP_printk("dev %d,%d ino %lu mode 0%o i_blocks %llu md_needed %d "
1215 (unsigned long) __entry->ino,
1228 __field( ino_t, ino )
1239 __entry->ino = inode->i_ino;
1248 TP_printk("dev %d,%d ino %lu mode 0%o i_blocks %llu freed_blocks %d "
1252 (unsigned long) __entry->ino,
1314 __field( ino_t, ino )
1322 __entry->ino = inode->i_ino;
1328 TP_printk("dev %d,%d ino %lu pos %lld len %lu rw %d",
1330 (unsigned long) __entry->ino,
1342 __field( ino_t, ino )
1351 __entry->ino = inode->i_ino;
1358 TP_printk("dev %d,%d ino %lu pos %lld len %lu rw %d ret %d",
1360 (unsigned long) __entry->ino,
1372 __field( ino_t, ino )
1380 __entry->ino = inode->i_ino;
1386 TP_printk("dev %d,%d ino %lu offset %lld len %lld mode %s",
1388 (unsigned long) __entry->ino,
1422 __field( ino_t, ino )
1430 __entry->ino = inode->i_ino;
1436 TP_printk("dev %d,%d ino %lu pos %lld blocks %u ret %d",
1438 (unsigned long) __entry->ino,
1450 __field( ino_t, ino )
1457 __entry->ino = d_inode(dentry)->i_ino;
1462 TP_printk("dev %d,%d ino %lu size %lld parent %lu",
1464 (unsigned long) __entry->ino, __entry->size,
1475 __field( ino_t, ino )
1481 __entry->ino = d_inode(dentry)->i_ino;
1485 TP_printk("dev %d,%d ino %lu ret %d",
1487 (unsigned long) __entry->ino,
1498 __field( ino_t, ino )
1504 __entry->ino = inode->i_ino;
1508 TP_printk("dev %d,%d ino %lu blocks %llu",
1510 (unsigned long) __entry->ino, __entry->blocks)
1536 __field( ino_t, ino )
1546 __entry->ino = inode->i_ino;
1554 TP_printk("dev %d,%d ino %lu m_lblk %u m_len %u u_lblk %u u_len %u "
1557 (unsigned long) __entry->ino,
1574 __field( ino_t, ino )
1587 __entry->ino = inode->i_ino;
1598 TP_printk("dev %d,%d ino %lu m_lblk %u m_len %u "
1602 (unsigned long) __entry->ino,
1616 __field( ino_t, ino )
1624 __entry->ino = inode->i_ino;
1630 TP_printk("dev %d,%d ino %lu lblk %u len %u flags %s",
1632 (unsigned long) __entry->ino,
1658 __field( ino_t, ino )
1669 __entry->ino = inode->i_ino;
1678 TP_printk("dev %d,%d ino %lu flags %s lblk %u pblk %llu len %u "
1681 (unsigned long) __entry->ino,
1707 __field( ino_t, ino )
1714 __entry->ino = inode->i_ino;
1719 TP_printk("dev %d,%d ino %lu lblk %u pblk %llu",
1721 (unsigned long) __entry->ino,
1732 __field( ino_t, ino )
1737 __entry->ino = inode->i_ino;
1740 TP_printk("dev %d,%d ino %ld",
1742 (unsigned long) __entry->ino)
1849 __field( ino_t, ino )
1860 __entry->ino = inode->i_ino;
1869 TP_printk("dev %d,%d ino %lu m_lblk %u m_pblk %llu m_len %u flags %s "
1872 (unsigned long) __entry->ino,
1916 __field( ino_t, ino )
1924 __entry->ino = inode->i_ino;
1930 TP_printk("dev %d,%d ino %lu lblk %u len %u start %llu",
1932 (unsigned long) __entry->ino,
1945 __field( ino_t, ino )
1952 __entry->ino = inode->i_ino;
1957 TP_printk("dev %d,%d ino %lu lblk %u ret %d",
1959 (unsigned long) __entry->ino,
1973 __field( ino_t, ino )
1983 __entry->ino = inode->i_ino;
1991 TP_printk("dev %d,%d ino %lu from %u to %u reverse %d found %d "
1994 (unsigned long) __entry->ino,
2007 __field( ino_t, ino )
2014 __entry->ino = inode->i_ino;
2019 TP_printk("dev %d,%d ino %lu lblk %u len %u",
2021 (unsigned long) __entry->ino,
2034 __field( ino_t, ino )
2042 __entry->ino = inode->i_ino;
2048 TP_printk("dev %d,%d ino %lu lblk %u pblk %llu len %u",
2050 (unsigned long) __entry->ino,
2065 __field( ino_t, ino )
2076 __entry->ino = inode->i_ino;
2085 TP_printk("dev %d,%d ino %lu extent [%u(%llu), %u]"
2088 (unsigned long) __entry->ino,
2106 __field( ino_t, ino )
2116 __entry->ino = inode->i_ino;
2124 TP_printk("dev %d,%d ino %lu start_lblk %u last_extent [%u(%llu), %u]"
2127 (unsigned long) __entry->ino,
2142 __field( ino_t, ino )
2148 __entry->ino = inode->i_ino;
2152 TP_printk("dev %d,%d ino %lu index_pblk %llu",
2154 (unsigned long) __entry->ino,
2166 __field( ino_t, ino )
2174 __entry->ino = inode->i_ino;
2180 TP_printk("dev %d,%d ino %lu since %u end %u depth %d",
2182 (unsigned long) __entry->ino,
2196 __field( ino_t, ino )
2206 __entry->ino = inode->i_ino;
2214 TP_printk("dev %d,%d ino %lu since %u end %u depth %d partial %lld "
2217 (unsigned long) __entry->ino,
2232 __field( ino_t, ino )
2241 __entry->ino = inode->i_ino;
2248 TP_printk("dev %d,%d ino %lu es [%u/%u) mapped %llu status %s",
2250 (unsigned long) __entry->ino,
2274 __field( ino_t, ino )
2281 __entry->ino = inode->i_ino;
2286 TP_printk("dev %d,%d ino %lu es [%lld/%lld)",
2288 (unsigned long) __entry->ino,
2299 __field( ino_t, ino )
2305 __entry->ino = inode->i_ino;
2309 TP_printk("dev %d,%d ino %lu lblk %u",
2311 (unsigned long) __entry->ino, __entry->lblk)
2321 __field( ino_t, ino )
2330 __entry->ino = inode->i_ino;
2337 TP_printk("dev %d,%d ino %lu es [%u/%u) mapped %llu status %s",
2339 (unsigned long) __entry->ino,
2351 __field( ino_t, ino )
2357 __entry->ino = inode->i_ino;
2361 TP_printk("dev %d,%d ino %lu lblk %u",
2363 (unsigned long) __entry->ino, __entry->lblk)
2374 __field( ino_t, ino )
2384 __entry->ino = inode->i_ino;
2392 TP_printk("dev %d,%d ino %lu found %d [%u/%u) %llu %s",
2394 (unsigned long) __entry->ino, __entry->found,
2463 __field(ino_t, ino)
2470 __entry->ino = inode->i_ino;
2475 TP_printk("dev %d,%d ino %lu offset %lld len %lld",
2477 (unsigned long) __entry->ino,
H A Df2fs.h10 #define show_dev_ino(entry) show_dev(entry), (unsigned long)entry->ino
124 __field(ino_t, ino)
135 __entry->ino = inode->i_ino;
144 TP_printk("dev = (%d,%d), ino = %lu, pino = %lu, i_mode = 0x%hx, "
163 __field(ino_t, ino)
169 __entry->ino = inode->i_ino;
173 TP_printk("dev = (%d,%d), ino = %lu, ret = %d",
193 __field(ino_t, ino)
201 __entry->ino = inode->i_ino;
207 TP_printk("dev = (%d,%d), ino = %lu, checkpoint is %s, "
275 __field(ino_t, ino)
283 __entry->ino = dir->i_ino;
289 TP_printk("dev = (%d,%d), dir ino = %lu, i_size = %lld, "
319 __field(ino_t, ino)
327 __entry->ino = inode->i_ino;
333 TP_printk("dev = (%d,%d), ino = %lu, nid = %u, offset = %u, freed = %d",
348 __field(ino_t, ino)
356 __entry->ino = inode->i_ino;
362 TP_printk("dev = (%d,%d), ino = %lu, i_size = %lld, i_blocks = %llu, "
406 __field(ino_t, ino)
413 __entry->ino = inode->i_ino;
418 TP_printk("dev = (%d,%d), ino = %lu, nid = %u, block_address = 0x%llx",
453 __field(ino_t, ino)
461 __entry->ino = inode->i_ino;
469 TP_printk("dev = (%d,%d), ino = %lu, "
487 __field(ino_t, ino)
496 __entry->ino = inode->i_ino;
503 TP_printk("dev = (%d,%d), ino = %lu, file offset = %llu, "
569 __field(ino_t, ino)
580 __entry->ino = inode->i_ino;
589 TP_printk("dev = (%d,%d), ino = %lu, mode = %x, offset = %lld, "
608 __field(ino_t, ino)
616 __entry->ino = inode->i_ino;
622 TP_printk("dev = (%d,%d), ino = %lu pos = %lld len = %lu rw = %d",
638 __field(ino_t, ino)
647 __entry->ino = inode->i_ino;
654 TP_printk("dev = (%d,%d), ino = %lu pos = %lld len = %lu "
695 __field(ino_t, ino)
704 __entry->ino = page->mapping->host->i_ino;
711 TP_printk("dev = (%d,%d), ino = %lu, page_index = 0x%lx, "
798 __field(ino_t, ino)
806 __entry->ino = inode->i_ino;
812 TP_printk("dev = (%d,%d), ino = %lu, pos = %llu, len = %u, flags = %u",
828 __field(ino_t, ino)
836 __entry->ino = inode->i_ino;
842 TP_printk("dev = (%d,%d), ino = %lu, pos = %llu, len = %u, copied = %u",
857 __field(ino_t, ino)
867 __entry->ino = page->mapping->host->i_ino;
875 TP_printk("dev = (%d,%d), ino = %lu, %s, %s, index = %lu, "
942 __field(ino_t, ino)
961 __entry->ino = inode->i_ino;
978 TP_printk("dev = (%d,%d), ino = %lu, %s, %s, nr_to_write %ld, "
1079 __field(ino_t, ino)
1085 __entry->ino = inode->i_ino;
1089 TP_printk("dev = (%d,%d), ino = %lu, pgofs = %u",
1105 __field(ino_t, ino)
1114 __entry->ino = inode->i_ino;
1121 TP_printk("dev = (%d,%d), ino = %lu, pgofs = %u, "
1138 __field(ino_t, ino)
1145 __entry->ino = inode->i_ino;
1150 TP_printk("dev = (%d,%d), ino = %lu, pgofs = %u, blkaddr = %u",
1189 __field(ino_t, ino)
1195 __entry->ino = inode->i_ino;
1199 TP_printk("dev = (%d,%d), ino = %lu, destroyed: node_cnt = %u",
H A Dwriteback.h63 __field(unsigned long, ino)
70 __entry->ino = mapping ? mapping->host->i_ino : 0;
74 TP_printk("bdi %s: ino=%lu index=%lu",
76 __entry->ino,
89 __field(unsigned long, ino)
100 __entry->ino = inode->i_ino;
105 TP_printk("bdi %s: ino=%lu state=%s flags=%s",
107 __entry->ino,
142 __field(unsigned long, ino)
149 __entry->ino = inode->i_ino;
153 TP_printk("bdi %s: ino=%lu sync_mode=%d",
155 __entry->ino,
513 __field(unsigned long, ino)
521 __entry->ino = inode->i_ino;
526 TP_printk("bdi %s: ino=%lu state=%s dirtied_when=%lu age=%lu",
528 __entry->ino,
581 __field(unsigned long, ino)
592 __entry->ino = inode->i_ino;
600 TP_printk("bdi %s: ino=%lu state=%s dirtied_when=%lu age=%lu "
603 __entry->ino,
634 __field(unsigned long, ino )
642 __entry->ino = inode->i_ino;
648 TP_printk("dev %d,%d ino %lu dirtied %lu state %s mode 0%o",
650 __entry->ino, __entry->dirtied_when,
H A Dfilemap.h37 TP_printk("dev %d:%d ino %lx page=%p pfn=%lu ofs=%lu",
H A Dbtrfs.h97 __field( ino_t, ino )
107 __entry->ino = inode->i_ino;
117 TP_printk("root = %llu(%s), gen = %llu, ino = %lu, blocks = %llu, "
121 (unsigned long)__entry->ino,
236 __field( ino_t, ino )
249 __entry->ino = inode->i_ino;
262 TP_printk("root = %llu(%s), ino = %llu, file_offset = %llu, "
267 (unsigned long long)__entry->ino,
313 __field( ino_t, ino )
327 __entry->ino = inode->i_ino;
341 TP_printk("root = %llu(%s), ino = %lu, page_index = %lu, "
346 (unsigned long)__entry->ino, __entry->index,
369 __field( ino_t, ino )
378 __entry->ino = page->mapping->host->i_ino;
387 TP_printk("root = %llu(%s), ino = %lu, page_index = %lu, start = %llu, "
390 (unsigned long)__entry->ino, (unsigned long)__entry->index,
402 __field( ino_t, ino )
412 __entry->ino = inode->i_ino;
419 TP_printk("root = %llu(%s), ino = %ld, parent = %ld, datasync = %d",
421 (unsigned long)__entry->ino, (unsigned long)__entry->parent,
H A Djbd2.h122 __field( ino_t, ino )
127 __entry->ino = inode->i_ino;
130 TP_printk("dev %d,%d ino %lu",
132 (unsigned long) __entry->ino)
H A Dsunrpc.h242 __field(unsigned long long, ino)
253 __entry->ino = (unsigned long long)inode->i_ino;
263 __entry->ino, __get_str(dstaddr), __get_str(dstport),
292 __field(unsigned long long, ino)
303 __entry->ino = (unsigned long long)inode->i_ino;
315 __entry->ino, __get_str(dstaddr), __get_str(dstport),
H A Dfilelock.h67 TP_printk("fl=0x%p dev=0x%x:0x%x ino=0x%lx fl_next=0x%p fl_owner=0x%p fl_flags=%s fl_type=%s fl_break_time=%lu fl_downgrade_time=%lu",
/linux-4.1.27/fs/qnx6/
H A Dnamei.c18 unsigned ino; qnx6_lookup() local
27 ino = qnx6_find_entry(len, dir, name, &page); qnx6_lookup()
28 if (ino) { qnx6_lookup()
29 foundinode = qnx6_iget(dir->i_sb, ino); qnx6_lookup()
H A Ddir.c225 unsigned ino; qnx6_find_entry() local
250 ino = qnx6_match(s, len, name, de); qnx6_find_entry()
251 if (ino) qnx6_find_entry()
256 ino = qnx6_long_match(len, qnx6_find_entry()
258 if (ino) qnx6_find_entry()
274 return ino; qnx6_find_entry()
H A Dinode.c519 struct inode *qnx6_iget(struct super_block *sb, unsigned ino) qnx6_iget() argument
529 inode = iget_locked(sb, ino); qnx6_iget()
539 if (ino == 0) { qnx6_iget()
541 sb->s_id, ino); qnx6_iget()
545 n = (ino - 1) >> (PAGE_CACHE_SHIFT - QNX6_INODE_SIZE_BITS); qnx6_iget()
546 offs = (ino - 1) & (~PAGE_CACHE_MASK >> QNX6_INODE_SIZE_BITS); qnx6_iget()
H A Dqnx6.h46 extern struct inode *qnx6_iget(struct super_block *sb, unsigned ino);
/linux-4.1.27/fs/ceph/
H A Dexport.c14 u64 ino; member in struct:ceph_nfs_fh
18 * Larger fh that includes parent ino.
21 u64 ino, parent_ino; member in struct:ceph_nfs_confh
48 cfh->ino = ceph_ino(inode); ceph_encode_fh()
54 fh->ino = ceph_ino(inode); ceph_encode_fh()
61 static struct dentry *__fh_to_dentry(struct super_block *sb, u64 ino) __fh_to_dentry() argument
69 vino.ino = ino; __fh_to_dentry()
101 dout("__fh_to_dentry %llx %p dentry %p\n", ino, inode, dentry); __fh_to_dentry()
120 dout("fh_to_dentry %llx\n", fh->ino); ceph_fh_to_dentry()
121 return __fh_to_dentry(sb, fh->ino); ceph_fh_to_dentry()
125 struct dentry *child, u64 ino) __get_parent()
143 .ino = ino, __get_parent()
166 dout("__get_parent ino %llx parent %p ino %llx.%llx\n", __get_parent()
167 child ? ceph_ino(d_inode(child)) : ino, __get_parent()
178 dout("get_parent %p ino %llx.%llx\n", ceph_get_parent()
199 dentry = __get_parent(sb, NULL, cfh->ino); ceph_fh_to_parent()
233 dout("get_name %p ino %llx.%llx name %s\n", ceph_get_name()
236 dout("get_name %p ino %llx.%llx err %d\n", ceph_get_name()
124 __get_parent(struct super_block *sb, struct dentry *child, u64 ino) __get_parent() argument
H A Dsnap.c90 if (new->ino < r->ino) __insert_snap_realm()
92 else if (new->ino > r->ino) __insert_snap_realm()
103 * create and get the realm rooted at @ino and bump its ref count.
109 u64 ino) ceph_create_snap_realm()
118 realm->ino = ino; ceph_create_snap_realm()
126 dout("create_snap_realm %llx %p\n", realm->ino, realm); ceph_create_snap_realm()
131 * lookup the realm rooted at @ino.
136 u64 ino) __lookup_snap_realm()
143 if (ino < r->ino) __lookup_snap_realm()
145 else if (ino > r->ino) __lookup_snap_realm()
148 dout("lookup_snap_realm %llx %p\n", r->ino, r); __lookup_snap_realm()
156 u64 ino) ceph_lookup_snap_realm()
159 r = __lookup_snap_realm(mdsc, ino); ceph_lookup_snap_realm()
174 dout("__destroy_snap_realm %p %llx\n", realm, realm->ino); __destroy_snap_realm()
195 dout("__put_snap_realm %llx %p %d -> %d\n", realm->ino, realm, __put_snap_realm()
207 dout("put_snap_realm %llx %p %d -> %d\n", realm->ino, realm, ceph_put_snap_realm()
276 realm->ino, realm, realm->parent_ino, realm->parent, adjust_snap_realm_parent()
335 realm->ino, realm, realm->cached_context, build_snap_context()
381 realm->ino, realm, snapc, snapc->seq, build_snap_context()
398 pr_err("build_snap_context %llx %p fail %d\n", realm->ino, build_snap_context()
410 dout("rebuild_snap_realms %llx %p\n", realm->ino, realm); rebuild_snap_realms()
605 dout("queue_realm_cap_snaps %p %llx inodes\n", realm, realm->ino); queue_realm_cap_snaps()
624 realm, realm->ino, child, child->ino); queue_realm_cap_snaps()
630 dout("queue_realm_cap_snaps %p %llx done\n", realm, realm->ino); queue_realm_cap_snaps()
665 realm = ceph_lookup_snap_realm(mdsc, le64_to_cpu(ri->ino)); ceph_update_snap_trace()
667 realm = ceph_create_snap_realm(mdsc, le64_to_cpu(ri->ino)); ceph_update_snap_trace()
682 realm->ino, realm, realm->seq, le64_to_cpu(ri->seq)); ceph_update_snap_trace()
706 realm->ino, realm, realm->seq); ceph_update_snap_trace()
710 realm->ino, realm, realm->seq); ceph_update_snap_trace()
713 dout("done with %llx %p, invalidated=%d, %p %p\n", realm->ino, ceph_update_snap_trace()
871 dout("splitting snap_realm %llx %p\n", realm->ino, realm); ceph_handle_snap()
874 .ino = le64_to_cpu(split_inos[i]), ceph_handle_snap()
898 inode, ci->i_snap_realm->ino, ceph_handle_snap()
903 inode, realm->ino, realm); ceph_handle_snap()
934 adjust_snap_realm_parent(mdsc, child, realm->ino); ceph_handle_snap()
107 ceph_create_snap_realm( struct ceph_mds_client *mdsc, u64 ino) ceph_create_snap_realm() argument
135 __lookup_snap_realm(struct ceph_mds_client *mdsc, u64 ino) __lookup_snap_realm() argument
155 ceph_lookup_snap_realm(struct ceph_mds_client *mdsc, u64 ino) ceph_lookup_snap_realm() argument
H A Dsuper.h253 struct ceph_vino i_vino; /* ceph ino + snap */
373 u32 ino = vino & 0xffffffff; ceph_ino_to_ino32() local
374 ino ^= vino >> 32; ceph_ino_to_ino32()
375 if (!ino) ceph_ino_to_ino32()
376 ino = 2; ceph_ino_to_ino32()
377 return ino; ceph_ino_to_ino32()
386 return ceph_ino_to_ino32(vino.ino); ceph_vino_to_ino()
388 return (ino_t)vino.ino; ceph_vino_to_ino()
393 * user-visible ino (stat, filldir)
396 static inline ino_t ceph_translate_ino(struct super_block *sb, ino_t ino) ceph_translate_ino() argument
398 return ino; ceph_translate_ino()
401 static inline ino_t ceph_translate_ino(struct super_block *sb, ino_t ino) ceph_translate_ino() argument
404 ino = ceph_ino_to_ino32(ino); ceph_translate_ino()
405 return ino; ceph_translate_ino()
411 #define ceph_vinop(i) ceph_inode(i)->i_vino.ino, ceph_inode(i)->i_vino.snap
415 return ceph_inode(inode)->i_vino.ino; ceph_ino()
426 return ci->i_vino.ino == pvino->ino && ceph_ino_compare()
630 u64 ino; member in struct:ceph_snap_realm
691 u64 ino);
841 extern void __queue_cap_release(struct ceph_mds_session *session, u64 ino,
H A Ddebugfs.c93 seq_printf(s, " #%llx/%s", req->r_ino1.ino, mdsc_show()
96 seq_printf(s, " #%llx", req->r_ino1.ino); mdsc_show()
113 if (req->r_ino2.ino) mdsc_show()
114 seq_printf(s, " #%llx/%s", req->r_ino2.ino, mdsc_show()
H A Dinode.c39 * find or create an inode, given the ceph ino number
57 dout("get_inode created new inode %p %llx.%llx ino %llx\n", ceph_get_inode()
62 dout("get_inode on %lu=%llx.%llx got %p\n", inode->i_ino, vino.ino, ceph_get_inode()
73 .ino = ceph_ino(parent), ceph_get_snapdir()
486 dout("destroy_inode %p ino %llx.%llx\n", inode, ceph_vinop(inode)); ceph_destroy_inode()
682 dout("fill_inode %p ino %llx.%llx v %llu had %llu\n", fill_inode()
990 pr_err("splice_dentry error %ld %p inode %p ino %llx.%llx\n", splice_dentry()
998 "inode %p ino %llx.%llx\n", splice_dentry()
1006 dout("dn %p attached to %p ino %llx.%llx\n", splice_dentry()
1061 vino.ino = le64_to_cpu(ininfo->ino); ceph_fill_trace()
1106 vino.ino = le64_to_cpu(rinfo->targeti.in->ino); ceph_fill_trace()
1129 (ceph_ino(d_inode(dn)) != vino.ino || ceph_fill_trace()
1144 vino.ino = le64_to_cpu(rinfo->targeti.in->ino); ceph_fill_trace()
1188 le64_to_cpu(rinfo->diri.in->ino)); ceph_fill_trace()
1314 vino.ino = le64_to_cpu(rinfo->dir_in[i].in->ino); readdir_prepopulate_inodes_only()
1385 vino.ino = le64_to_cpu(rinfo->dir_in[i].in->ino); ceph_readdir_prepopulate()
1409 (ceph_ino(d_inode(dn)) != vino.ino || ceph_readdir_prepopulate()
2000 stat->ino = ceph_translate_ino(inode->i_sb, inode->i_ino); ceph_getattr()
H A Dmds_client.c257 info->ino = ceph_decode_64(p); parse_reply_info_create()
1844 * an explicit ino+path.
1849 u64 *ino, int *freepath) set_request_path_attr()
1854 r = build_inode_path(rinode, ppath, pathlen, ino, freepath); set_request_path_attr()
1858 r = build_dentry_path(rdentry, ppath, pathlen, ino, freepath); set_request_path_attr()
1859 dout(" dentry %p %llx/%.*s\n", rdentry, *ino, *pathlen, set_request_path_attr()
1862 *ino = rino; set_request_path_attr()
1891 req->r_path1, req->r_ino1.ino, create_request_message()
1899 req->r_path2, req->r_ino2.ino, create_request_message()
2053 rhead->ino = cpu_to_le64(ceph_ino(req->r_target_inode)); __prepare_send_request()
2094 rhead->ino = 0; __prepare_send_request()
2741 dout(" adding %p ino %llx.%llx cap %p %lld %s\n", encode_caps_cb()
2773 rec.v2.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); encode_caps_cb()
2784 rec.v1.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); encode_caps_cb()
2926 * snaprealms. we provide mds with the ino, seq (version), and send_mds_reconnect()
2936 realm->ino, realm->seq, realm->parent_ino); send_mds_reconnect()
2937 sr_rec.ino = cpu_to_le64(realm->ino); send_mds_reconnect()
3112 vino.ino = le64_to_cpu(h->ino); handle_lease()
3122 dout("handle_lease %s, ino %llx %p %.*s\n", handle_lease()
3123 ceph_lease_op_name(h->action), vino.ino, inode, handle_lease()
3130 dout("handle_lease no inode %llx\n", vino.ino); handle_lease()
3217 lease->ino = cpu_to_le64(ceph_vino(inode).ino); ceph_mdsc_lease_send_msg()
1846 set_request_path_attr(struct inode *rinode, struct dentry *rdentry, const char *rpath, u64 rino, const char **ppath, int *pathlen, u64 *ino, int *freepath) set_request_path_attr() argument
H A Dcaps.c936 __queue_cap_release(session, ci->i_vino.ino, cap->cap_id, __ceph_remove_cap()
978 u64 ino, u64 cid, int op, send_cap_msg()
997 cid, ino, ceph_cap_string(caps), ceph_cap_string(wanted), send_cap_msg()
1022 fc->ino = cpu_to_le64(ino); send_cap_msg()
1057 u64 ino, u64 cap_id, u32 migrate_seq, __queue_cap_release()
1069 ino, session->s_mds, msg, session->s_num_cap_releases); __queue_cap_release()
1075 item->ino = cpu_to_le64(ino); __queue_cap_release()
1239 ret = send_cap_msg(session, ceph_vino(inode).ino, cap_id,
1333 dout("inverting session/ino locks on %p\n",
1356 send_cap_msg(session, ceph_vino(inode).ino, 0,
1721 dout("inverting session/ino locks on %p\n", ceph_check_caps()
3061 "ino (%llx.%llx) mds%d seq %d mseq %d "
3118 vino.ino = le64_to_cpu(h->ino); ceph_handle_caps()
3159 /* lookup ino */ ceph_handle_caps()
3162 dout(" op %s ino %llx.%llx inode %p\n", ceph_cap_op_name(op), vino.ino, ceph_handle_caps()
3174 dout(" i don't have ino %llx\n", vino.ino); ceph_handle_caps()
3178 __queue_cap_release(session, vino.ino, cap_id, ceph_handle_caps()
3220 dout(" no cap on %p ino %llx.%llx from mds%d\n", ceph_handle_caps()
3402 rel->ino = cpu_to_le64(ceph_ino(inode)); ceph_encode_inode_release()
977 send_cap_msg(struct ceph_mds_session *session, u64 ino, u64 cid, int op, int caps, int wanted, int dirty, u32 seq, u64 flush_tid, u32 issue_seq, u32 mseq, u64 size, u64 max_size, struct timespec *mtime, struct timespec *atime, u64 time_warp_seq, kuid_t uid, kgid_t gid, umode_t mode, u64 xattr_version, struct ceph_buffer *xattrs_buf, u64 follows, bool inline_data) send_cap_msg() argument
1056 __queue_cap_release(struct ceph_mds_session *session, u64 ino, u64 cap_id, u32 migrate_seq, u32 issue_seq) __queue_cap_release() argument
/linux-4.1.27/fs/nilfs2/
H A Dexport.h11 * @ino: inode number
18 u64 ino; member in struct:nilfs_fid
H A Difile.h36 nilfs_ifile_map_inode(struct inode *ifile, ino_t ino, struct buffer_head *ibh) nilfs_ifile_map_inode() argument
39 return nilfs_palloc_block_get_entry(ifile, ino, ibh, kaddr); nilfs_ifile_map_inode()
42 static inline void nilfs_ifile_unmap_inode(struct inode *ifile, ino_t ino, nilfs_ifile_unmap_inode() argument
H A Difile.c54 * number is stored in the place pointed by @ino, and buffer_head pointer
97 * @ino: inode number
106 * %-ENOENT - The inode number @ino have not been allocated.
108 int nilfs_ifile_delete_inode(struct inode *ifile, ino_t ino) nilfs_ifile_delete_inode() argument
111 .pr_entry_nr = ino, .pr_entry_bh = NULL nilfs_ifile_delete_inode()
143 int nilfs_ifile_get_inode_block(struct inode *ifile, ino_t ino, nilfs_ifile_get_inode_block() argument
149 if (unlikely(!NILFS_VALID_INODE(sb, ino))) { nilfs_ifile_get_inode_block()
151 (unsigned long) ino); nilfs_ifile_get_inode_block()
155 err = nilfs_palloc_get_entry_block(ifile, ino, 0, out_bh); nilfs_ifile_get_inode_block()
158 (unsigned long) ino); nilfs_ifile_get_inode_block()
H A Dinode.c40 * @ino: inode number
46 u64 ino; member in struct:nilfs_iget_args
353 unsigned long ino) nilfs_insert_inode_locked()
356 .ino = ino, .root = root, .cno = 0, .for_gc = 0 nilfs_insert_inode_locked()
359 return insert_inode_locked4(inode, ino, nilfs_iget_test, &args); nilfs_insert_inode_locked()
370 ino_t ino; nilfs_new_inode() local
384 err = nilfs_ifile_create_inode(root->ifile, &ino, &ii->i_bh); nilfs_new_inode()
391 inode->i_ino = ino; nilfs_new_inode()
413 if (nilfs_insert_inode_locked(inode, root, ino) < 0) { nilfs_new_inode()
502 struct nilfs_root *root, unsigned long ino, __nilfs_read_inode()
511 err = nilfs_ifile_get_inode_block(root->ifile, ino, &bh); __nilfs_read_inode()
515 raw_inode = nilfs_ifile_map_inode(root->ifile, ino, bh); __nilfs_read_inode()
538 nilfs_ifile_unmap_inode(root->ifile, ino, bh); __nilfs_read_inode()
547 nilfs_ifile_unmap_inode(root->ifile, ino, bh); __nilfs_read_inode()
560 if (args->ino != inode->i_ino || args->root != NILFS_I(inode)->i_root) nilfs_iget_test()
574 inode->i_ino = args->ino; nilfs_iget_set()
580 if (args->root && args->ino == NILFS_ROOT_INO) nilfs_iget_set()
588 unsigned long ino) nilfs_ilookup()
591 .ino = ino, .root = root, .cno = 0, .for_gc = 0 nilfs_ilookup()
594 return ilookup5(sb, ino, nilfs_iget_test, &args); nilfs_ilookup()
598 unsigned long ino) nilfs_iget_locked()
601 .ino = ino, .root = root, .cno = 0, .for_gc = 0 nilfs_iget_locked()
604 return iget5_locked(sb, ino, nilfs_iget_test, nilfs_iget_set, &args); nilfs_iget_locked()
608 unsigned long ino) nilfs_iget()
613 inode = nilfs_iget_locked(sb, root, ino); nilfs_iget()
619 err = __nilfs_read_inode(sb, root, ino, inode); nilfs_iget()
628 struct inode *nilfs_iget_for_gc(struct super_block *sb, unsigned long ino, nilfs_iget_for_gc() argument
632 .ino = ino, .root = NULL, .cno = cno, .for_gc = 1 nilfs_iget_for_gc()
637 inode = iget5_locked(sb, ino, nilfs_iget_test, nilfs_iget_set, &args); nilfs_iget_for_gc()
692 ino_t ino = inode->i_ino; nilfs_update_inode() local
697 raw_inode = nilfs_ifile_map_inode(ifile, ino, ibh); nilfs_update_inode()
708 nilfs_ifile_unmap_inode(ifile, ino, ibh); nilfs_update_inode()
740 "failed to truncate bmap (ino=%lu, err=%d)", nilfs_truncate_bmap()
945 "cannot get inode (ino=%lu)\n", nilfs_set_file_dirty()
351 nilfs_insert_inode_locked(struct inode *inode, struct nilfs_root *root, unsigned long ino) nilfs_insert_inode_locked() argument
501 __nilfs_read_inode(struct super_block *sb, struct nilfs_root *root, unsigned long ino, struct inode *inode) __nilfs_read_inode() argument
587 nilfs_ilookup(struct super_block *sb, struct nilfs_root *root, unsigned long ino) nilfs_ilookup() argument
597 nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root, unsigned long ino) nilfs_iget_locked() argument
607 nilfs_iget(struct super_block *sb, struct nilfs_root *root, unsigned long ino) nilfs_iget() argument
H A Dnamei.c71 ino_t ino; nilfs_lookup() local
76 ino = nilfs_inode_by_name(dir, &dentry->d_name); nilfs_lookup()
77 inode = ino ? nilfs_iget(dir->i_sb, NILFS_I(dir)->i_root, ino) : NULL; nilfs_lookup()
451 unsigned long ino; nilfs_get_parent() local
456 ino = nilfs_inode_by_name(d_inode(child), &dotdot); nilfs_get_parent()
457 if (!ino) nilfs_get_parent()
462 inode = nilfs_iget(d_inode(child)->i_sb, root, ino); nilfs_get_parent()
470 u64 ino, u32 gen) nilfs_get_dentry()
475 if (ino < NILFS_FIRST_INO(sb) && ino != NILFS_ROOT_INO) nilfs_get_dentry()
482 inode = nilfs_iget(sb, root, ino); nilfs_get_dentry()
505 return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen); nilfs_fh_to_dentry()
537 fid->ino = inode->i_ino; nilfs_encode_fh()
469 nilfs_get_dentry(struct super_block *sb, u64 cno, u64 ino, u32 gen) nilfs_get_dentry() argument
H A Dnilfs.h133 #define NILFS_MDT_INODE(sb, ino) \
134 ((ino) < NILFS_FIRST_INO(sb) && (NILFS_MDT_INO_BITS & (1 << (ino))))
135 #define NILFS_VALID_INODE(sb, ino) \
136 ((ino) >= NILFS_FIRST_INO(sb) || (NILFS_SYS_INO_BITS & (1 << (ino))))
267 unsigned long ino);
269 unsigned long ino);
271 unsigned long ino);
273 unsigned long ino, __u64 cno);
H A Drecovery.c50 ino_t ino; /* Inode number of the file that this block member in struct:nilfs_recovery_block
324 ino_t ino; nilfs_scan_dsync_log() local
347 ino = le64_to_cpu(finfo->fi_ino); nilfs_scan_dsync_log()
366 rb->ino = ino; nilfs_scan_dsync_log()
517 inode = nilfs_iget(sb, root, rb->ino); list_for_each_entry_safe()
559 "(err=%d, ino=%lu, block-offset=%llu)\n", list_for_each_entry_safe()
560 err, (unsigned long)rb->ino, list_for_each_entry_safe()
H A Dpage.c171 unsigned long ino; nilfs_page_bug() local
179 ino = m ? m->host->i_ino : 0; nilfs_page_bug()
182 "mapping=%p ino=%lu\n", nilfs_page_bug()
184 (unsigned long long)page->index, page->flags, m, ino); nilfs_page_bug()
413 "discard page: offset %lld, ino %lu", nilfs_clear_dirty_page()
/linux-4.1.27/include/linux/ceph/
H A Dtypes.h15 * Identify inodes by both their ino AND snapshot id (a u64).
18 u64 ino; member in struct:ceph_vino
H A Dceph_fs.h291 & & 0x100000 -> use weird ino/path trace
409 __le64 ino; /* use this ino for openc, mkdir, mknod, member in struct:ceph_mds_request_head
416 __le64 ino, cap_id; /* ino and unique cap id */ member in struct:ceph_mds_request_release
458 __le64 ino; member in struct:ceph_mds_reply_inode
637 __le64 ino, realm; member in struct:ceph_mds_caps
677 __le64 ino; member in struct:ceph_mds_cap_item
693 __le64 ino; member in struct:ceph_mds_lease
706 __le64 pathbase; /* base ino for our path to this ino */
718 __le64 pathbase; /* base ino for our path to this ino */
722 __le64 ino; /* snap realm base */ member in struct:ceph_mds_snaprealm_reconnect
742 __le64 split; /* ino to split off, if any */
747 /* followed by split ino list, then split realms, then the trace blob */
753 __le64 ino; /* ino */ member in struct:ceph_mds_snap_realm
755 __le64 parent; /* ino: parent realm */
H A Ddecode.h198 u64 ino, const char *path) ceph_encode_filepath()
201 BUG_ON(*p + 1 + sizeof(ino) + sizeof(len) + len > end); ceph_encode_filepath()
203 ceph_encode_64(p, ino); ceph_encode_filepath()
197 ceph_encode_filepath(void **p, void *end, u64 ino, const char *path) ceph_encode_filepath() argument
/linux-4.1.27/arch/sparc/kernel/
H A Dprom_irqtrans.c18 static unsigned long psycho_pcislot_imap_offset(unsigned long ino) psycho_pcislot_imap_offset() argument
20 unsigned int bus = (ino & 0x10) >> 4; psycho_pcislot_imap_offset()
21 unsigned int slot = (ino & 0x0c) >> 2; psycho_pcislot_imap_offset()
38 #define psycho_iclr_offset(ino) \
39 ((ino & 0x20) ? (PSYCHO_ICLR_SCSI + (((ino) & 0x1f) << 3)) : \
40 (PSYCHO_ICLR_A_SLOT0 + (((ino) & 0x1f)<<3)))
43 unsigned int ino, psycho_irq_build()
51 ino &= 0x3f; psycho_irq_build()
52 if (ino < PSYCHO_ONBOARD_IRQ_BASE) { psycho_irq_build()
54 imap_off = psycho_pcislot_imap_offset(ino); psycho_irq_build()
57 imap_off = psycho_onboard_imap_offset(ino); psycho_irq_build()
63 iclr_off = psycho_iclr_offset(ino); psycho_irq_build()
66 if ((ino & 0x20) == 0) psycho_irq_build()
67 inofixup = ino & 0x03; psycho_irq_build()
113 static void sabre_wsync_handler(unsigned int ino, void *_arg1, void *_arg2) sabre_wsync_handler() argument
161 static unsigned long sabre_pcislot_imap_offset(unsigned long ino) sabre_pcislot_imap_offset() argument
163 unsigned int bus = (ino & 0x10) >> 4; sabre_pcislot_imap_offset()
164 unsigned int slot = (ino & 0x0c) >> 2; sabre_pcislot_imap_offset()
177 #define sabre_iclr_offset(ino) \
178 ((ino & 0x20) ? (SABRE_ICLR_SCSI + (((ino) & 0x1f) << 3)) : \
179 (SABRE_ICLR_A_SLOT0 + (((ino) & 0x1f)<<3)))
221 unsigned int ino, sabre_irq_build()
232 ino &= 0x3f; sabre_irq_build()
233 if (ino < SABRE_ONBOARD_IRQ_BASE) { sabre_irq_build()
235 imap_off = sabre_pcislot_imap_offset(ino); sabre_irq_build()
238 imap_off = sabre_onboard_imap_offset(ino); sabre_irq_build()
244 iclr_off = sabre_iclr_offset(ino); sabre_irq_build()
247 if ((ino & 0x20) == 0) sabre_irq_build()
248 inofixup = ino & 0x03; sabre_irq_build()
294 static unsigned long schizo_imap_offset(unsigned long ino) schizo_imap_offset() argument
296 return SCHIZO_IMAP_BASE + (ino * 8UL); schizo_imap_offset()
299 static unsigned long schizo_iclr_offset(unsigned long ino) schizo_iclr_offset() argument
301 return SCHIZO_ICLR_BASE + (ino * 8UL); schizo_iclr_offset()
305 unsigned int ino) schizo_ino_to_iclr()
308 return pbm_regs + schizo_iclr_offset(ino); schizo_ino_to_iclr()
312 unsigned int ino) schizo_ino_to_imap()
314 return pbm_regs + schizo_imap_offset(ino); schizo_ino_to_imap()
332 static void tomatillo_wsync_handler(unsigned int ino, void *_arg1, void *_arg2) tomatillo_wsync_handler() argument
335 u64 mask = 1UL << (ino & IMAP_INO); tomatillo_wsync_handler()
378 unsigned int ino, schizo_irq_build()
388 ino &= 0x3f; schizo_irq_build()
391 imap = schizo_ino_to_imap(pbm_regs, ino); schizo_irq_build()
392 iclr = schizo_ino_to_iclr(pbm_regs, ino); schizo_irq_build()
487 static unsigned long fire_imap_offset(unsigned long ino) fire_imap_offset() argument
489 return FIRE_IMAP_BASE + (ino * 8UL); fire_imap_offset()
492 static unsigned long fire_iclr_offset(unsigned long ino) fire_iclr_offset() argument
494 return FIRE_ICLR_BASE + (ino * 8UL); fire_iclr_offset()
498 unsigned int ino) fire_ino_to_iclr()
500 return pbm_regs + fire_iclr_offset(ino); fire_ino_to_iclr()
504 unsigned int ino) fire_ino_to_imap()
506 return pbm_regs + fire_imap_offset(ino); fire_ino_to_imap()
510 unsigned int ino, fire_irq_build()
518 ino &= 0x3f; fire_irq_build()
521 imap = fire_ino_to_imap(pbm_regs, ino); fire_irq_build()
522 iclr = fire_ino_to_iclr(pbm_regs, ino); fire_irq_build()
536 ino |= (irq_data->portid << 6); fire_irq_build()
537 ino -= int_ctrlr; fire_irq_build()
538 return build_irq(ino, iclr, imap); fire_irq_build()
648 unsigned int ino, sbus_of_build_irq()
657 ino &= 0x3f; sbus_of_build_irq()
663 if (ino < 0x20) sbus_of_build_irq()
664 ino += (sbus_slot * 8); sbus_of_build_irq()
666 imap = sysio_irq_offsets[ino]; sbus_of_build_irq()
669 ino); sbus_of_build_irq()
678 if (ino >= 0x20) { sbus_of_build_irq()
681 sbus_level = ino & 0x7; sbus_of_build_irq()
718 unsigned int ino, central_build_irq()
734 return ino; central_build_irq()
42 psycho_irq_build(struct device_node *dp, unsigned int ino, void *_data) psycho_irq_build() argument
220 sabre_irq_build(struct device_node *dp, unsigned int ino, void *_data) sabre_irq_build() argument
304 schizo_ino_to_iclr(unsigned long pbm_regs, unsigned int ino) schizo_ino_to_iclr() argument
311 schizo_ino_to_imap(unsigned long pbm_regs, unsigned int ino) schizo_ino_to_imap() argument
377 schizo_irq_build(struct device_node *dp, unsigned int ino, void *_data) schizo_irq_build() argument
497 fire_ino_to_iclr(unsigned long pbm_regs, unsigned int ino) fire_ino_to_iclr() argument
503 fire_ino_to_imap(unsigned long pbm_regs, unsigned int ino) fire_ino_to_imap() argument
509 fire_irq_build(struct device_node *dp, unsigned int ino, void *_data) fire_irq_build() argument
647 sbus_of_build_irq(struct device_node *dp, unsigned int ino, void *_data) sbus_of_build_irq() argument
717 central_build_irq(struct device_node *dp, unsigned int ino, void *_data) central_build_irq() argument
H A Dirq_64.c450 unsigned int ino = irq_data_to_sysino(data); sun4v_irq_enable() local
453 err = sun4v_intr_settarget(ino, cpuid); sun4v_irq_enable()
456 "err(%d)\n", ino, cpuid, err); sun4v_irq_enable()
457 err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE); sun4v_irq_enable()
460 "err(%d)\n", ino, err); sun4v_irq_enable()
461 err = sun4v_intr_setenabled(ino, HV_INTR_ENABLED); sun4v_irq_enable()
464 ino, err); sun4v_irq_enable()
471 unsigned int ino = irq_data_to_sysino(data); sun4v_set_affinity() local
474 err = sun4v_intr_settarget(ino, cpuid); sun4v_set_affinity()
477 "err(%d)\n", ino, cpuid, err); sun4v_set_affinity()
484 unsigned int ino = irq_data_to_sysino(data); sun4v_irq_disable() local
487 err = sun4v_intr_setenabled(ino, HV_INTR_DISABLED); sun4v_irq_disable()
490 "err(%d)\n", ino, err); sun4v_irq_disable()
495 unsigned int ino = irq_data_to_sysino(data); sun4v_irq_eoi() local
498 err = sun4v_intr_setstate(ino, HV_INTR_STATE_IDLE); sun4v_irq_eoi()
501 "err(%d)\n", ino, err); sun4v_irq_eoi()
612 int ino; build_irq() local
616 ino = (upa_readq(imap) & (IMAP_IGN | IMAP_INO)) + inofixup; build_irq()
617 bucket = &ivector_table[ino]; build_irq()
620 irq = irq_alloc(0, ino); build_irq()
H A Dsbus.c208 static unsigned int sbus_build_irq(struct platform_device *op, unsigned int ino) sbus_build_irq() argument
215 imap = sysio_irq_offsets[ino]; sbus_build_irq()
218 ino); sbus_build_irq()
227 if (ino >= 0x20) { sbus_build_irq()
230 int sbus_slot = (ino & 0x18)>>3; sbus_build_irq()
232 sbus_level = ino & 0x7; sbus_build_irq()
/linux-4.1.27/fs/autofs4/
H A Dsymlink.c18 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_follow_link() local
19 if (ino && !autofs4_oz_mode(sbi)) autofs4_follow_link()
20 ino->last_used = jiffies; autofs4_follow_link()
H A Dexpire.c23 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_can_expire() local
26 if (ino == NULL) autofs4_can_expire()
31 if (!timeout || time_after(ino->last_used + timeout, now)) autofs4_can_expire()
61 struct autofs_info *ino = autofs4_dentry_ino(top); autofs4_mount_busy() local
62 ino->last_used = jiffies; autofs4_mount_busy()
198 struct autofs_info *ino = autofs4_dentry_ino(top); autofs4_direct_busy() local
199 if (ino) autofs4_direct_busy()
200 ino->last_used = jiffies; autofs4_direct_busy()
245 struct autofs_info *ino = autofs4_dentry_ino(p); autofs4_tree_busy() local
246 unsigned int ino_count = atomic_read(&ino->count); autofs4_tree_busy()
304 struct autofs_info *ino; autofs4_expire_direct() local
313 ino = autofs4_dentry_ino(root); autofs4_expire_direct()
315 if (ino->flags & AUTOFS_INF_PENDING) autofs4_expire_direct()
318 ino->flags |= AUTOFS_INF_NO_RCU; autofs4_expire_direct()
323 ino->flags |= AUTOFS_INF_EXPIRING; autofs4_expire_direct()
325 ino->flags &= ~AUTOFS_INF_NO_RCU; autofs4_expire_direct()
326 init_completion(&ino->expire_complete); autofs4_expire_direct()
330 ino->flags &= ~AUTOFS_INF_NO_RCU; autofs4_expire_direct()
351 struct autofs_info *ino = autofs4_dentry_ino(dentry); should_expire() local
355 if (ino->flags & AUTOFS_INF_PENDING) should_expire()
394 ino_count = atomic_read(&ino->count) + 1; should_expire()
407 ino_count = atomic_read(&ino->count) + 1; should_expire()
435 struct autofs_info *ino; autofs4_expire_indirect() local
446 ino = autofs4_dentry_ino(dentry); autofs4_expire_indirect()
447 if (ino->flags & AUTOFS_INF_NO_RCU) autofs4_expire_indirect()
455 ino = autofs4_dentry_ino(expired); autofs4_expire_indirect()
456 ino->flags |= AUTOFS_INF_NO_RCU; autofs4_expire_indirect()
466 ino->flags &= ~AUTOFS_INF_NO_RCU; autofs4_expire_indirect()
475 ino->flags |= AUTOFS_INF_EXPIRING; autofs4_expire_indirect()
477 ino->flags &= ~AUTOFS_INF_NO_RCU; autofs4_expire_indirect()
478 init_completion(&ino->expire_complete); autofs4_expire_indirect()
493 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_expire_wait() local
497 if (!(ino->flags & (AUTOFS_INF_EXPIRING | AUTOFS_INF_NO_RCU))) autofs4_expire_wait()
503 if (ino->flags & AUTOFS_INF_EXPIRING) { autofs4_expire_wait()
509 wait_for_completion(&ino->expire_complete); autofs4_expire_wait()
530 struct autofs_info *ino; autofs4_expire_run() local
551 ino = autofs4_dentry_ino(dentry); autofs4_expire_run()
553 ino->last_used = now; autofs4_expire_run()
554 ino->flags &= ~AUTOFS_INF_EXPIRING; autofs4_expire_run()
555 complete_all(&ino->expire_complete); autofs4_expire_run()
573 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_do_expire_multi() local
581 ino->last_used = now; autofs4_do_expire_multi()
582 ino->flags &= ~AUTOFS_INF_EXPIRING; autofs4_do_expire_multi()
583 complete_all(&ino->expire_complete); autofs4_do_expire_multi()
H A Dinode.c27 struct autofs_info *ino = kzalloc(sizeof(*ino), GFP_KERNEL); autofs4_new_ino() local
28 if (ino) { autofs4_new_ino()
29 INIT_LIST_HEAD(&ino->active); autofs4_new_ino()
30 INIT_LIST_HEAD(&ino->expiring); autofs4_new_ino()
31 ino->last_used = jiffies; autofs4_new_ino()
32 ino->sbi = sbi; autofs4_new_ino()
34 return ino; autofs4_new_ino()
37 void autofs4_clean_ino(struct autofs_info *ino) autofs4_clean_ino() argument
39 ino->uid = GLOBAL_ROOT_UID; autofs4_clean_ino()
40 ino->gid = GLOBAL_ROOT_GID; autofs4_clean_ino()
41 ino->last_used = jiffies; autofs4_clean_ino()
44 void autofs4_free_ino(struct autofs_info *ino) autofs4_free_ino() argument
46 kfree(ino); autofs4_free_ino()
212 struct autofs_info *ino; autofs4_fill_super() local
252 ino = autofs4_new_ino(sbi); autofs4_fill_super()
253 if (!ino) { autofs4_fill_super()
263 root->d_fsdata = ino; autofs4_fill_super()
338 kfree(ino); autofs4_fill_super()
H A Droot.c77 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_add_active() local
78 if (ino) { autofs4_add_active()
80 if (!ino->active_count) { autofs4_add_active()
81 if (list_empty(&ino->active)) autofs4_add_active()
82 list_add(&ino->active, &sbi->active_list); autofs4_add_active()
84 ino->active_count++; autofs4_add_active()
93 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_del_active() local
94 if (ino) { autofs4_del_active()
96 ino->active_count--; autofs4_del_active()
97 if (!ino->active_count) { autofs4_del_active()
98 if (!list_empty(&ino->active)) autofs4_del_active()
99 list_del_init(&ino->active); autofs4_del_active()
138 struct autofs_info *ino = autofs4_dentry_ino(de); autofs4_dentry_release() local
143 if (!ino) autofs4_dentry_release()
148 if (!list_empty(&ino->active)) autofs4_dentry_release()
149 list_del(&ino->active); autofs4_dentry_release()
150 if (!list_empty(&ino->expiring)) autofs4_dentry_release()
151 list_del(&ino->expiring); autofs4_dentry_release()
155 autofs4_free_ino(ino); autofs4_dentry_release()
173 struct autofs_info *ino; list_for_each() local
177 ino = list_entry(p, struct autofs_info, active); list_for_each()
178 active = ino->dentry; list_for_each()
228 struct autofs_info *ino; list_for_each() local
237 ino = list_entry(p, struct autofs_info, expiring); list_for_each()
238 expiring = ino->dentry; list_for_each()
275 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_mount_wait() local
278 if (ino->flags & AUTOFS_INF_PENDING) { autofs4_mount_wait()
285 ino->last_used = jiffies; autofs4_mount_wait()
322 struct autofs_info *ino; autofs4_mountpoint_changed() local
326 ino = autofs4_dentry_ino(new); autofs4_mountpoint_changed()
327 ino->last_used = jiffies; autofs4_mountpoint_changed()
338 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_d_automount() local
361 if (ino->flags & AUTOFS_INF_PENDING) { autofs4_d_automount()
402 ino->flags |= AUTOFS_INF_PENDING; autofs4_d_automount()
406 ino->flags &= ~AUTOFS_INF_PENDING; autofs4_d_automount()
425 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_d_manage() local
458 if (ino->flags & (AUTOFS_INF_EXPIRING | AUTOFS_INF_NO_RCU)) autofs4_d_manage()
480 if (!(ino->flags & AUTOFS_INF_EXPIRING)) { autofs4_d_manage()
500 struct autofs_info *ino; autofs4_lookup() local
532 ino = autofs4_new_ino(sbi); autofs4_lookup()
533 if (!ino) autofs4_lookup()
536 dentry->d_fsdata = ino; autofs4_lookup()
537 ino->dentry = dentry; autofs4_lookup()
551 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_dir_symlink() local
562 BUG_ON(!ino); autofs4_dir_symlink()
564 autofs4_clean_ino(ino); autofs4_dir_symlink()
578 kfree(ino); autofs4_dir_symlink()
586 atomic_inc(&ino->count); autofs4_dir_symlink()
614 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_dir_unlink() local
621 if (atomic_dec_and_test(&ino->count)) { autofs4_dir_unlink()
626 dput(ino->dentry); autofs4_dir_unlink()
696 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_dir_rmdir() local
716 if (atomic_dec_and_test(&ino->count)) { autofs4_dir_rmdir()
721 dput(ino->dentry); autofs4_dir_rmdir()
734 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_dir_mkdir() local
743 BUG_ON(!ino); autofs4_dir_mkdir()
745 autofs4_clean_ino(ino); autofs4_dir_mkdir()
758 atomic_inc(&ino->count); autofs4_dir_mkdir()
H A Dautofs_i.h95 u64 ino; member in struct:autofs_wait_queue
249 struct autofs_info *ino = autofs4_dentry_ino(dentry); __autofs4_add_expiring() local
250 if (ino) { __autofs4_add_expiring()
251 if (list_empty(&ino->expiring)) __autofs4_add_expiring()
252 list_add(&ino->expiring, &sbi->expiring_list); __autofs4_add_expiring()
260 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_add_expiring() local
261 if (ino) { autofs4_add_expiring()
263 if (list_empty(&ino->expiring)) autofs4_add_expiring()
264 list_add(&ino->expiring, &sbi->expiring_list); autofs4_add_expiring()
273 struct autofs_info *ino = autofs4_dentry_ino(dentry); autofs4_del_expiring() local
274 if (ino) { autofs4_del_expiring()
276 if (!list_empty(&ino->expiring)) autofs4_del_expiring()
277 list_del_init(&ino->expiring); autofs4_del_expiring()
H A Dwaitq.c158 packet->ino = wq->ino; autofs4_notify_daemon()
254 struct autofs_info *ino; validate_request() local
269 ino = autofs4_dentry_ino(dentry); validate_request()
270 if (!ino) validate_request()
285 while (ino->flags & AUTOFS_INF_EXPIRING) { validate_request()
429 wq->ino = autofs4_get_ino(sbi); autofs4_wait()
505 struct autofs_info *ino; autofs4_wait() local
509 ino = autofs4_dentry_ino(dentry); autofs4_wait()
510 if (!ino) { autofs4_wait()
514 ino = autofs4_dentry_ino(de); autofs4_wait()
518 if (ino) { autofs4_wait()
520 ino->uid = wq->uid; autofs4_wait()
521 ino->gid = wq->gid; autofs4_wait()
H A Ddev-ioctl.c227 struct autofs_info *ino = autofs4_dentry_ino(path->dentry); test_by_type() local
228 return ino && ino->sbi->type & *(unsigned *)p; test_by_type()
436 struct autofs_info *ino; autofs_dev_ioctl_requester() local
454 ino = autofs4_dentry_ino(path.dentry); autofs_dev_ioctl_requester()
455 if (ino) { autofs_dev_ioctl_requester()
459 param->requester.uid = from_kuid_munged(current_user_ns(), ino->uid); autofs_dev_ioctl_requester()
460 param->requester.gid = from_kgid_munged(current_user_ns(), ino->gid); autofs_dev_ioctl_requester()
/linux-4.1.27/fs/minix/
H A Dbitmap.c106 minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) minix_V1_raw_inode() argument
112 if (!ino || ino > sbi->s_ninodes) { minix_V1_raw_inode()
114 sb->s_id, (long)ino); minix_V1_raw_inode()
117 ino--; minix_V1_raw_inode()
119 ino / MINIX_INODES_PER_BLOCK; minix_V1_raw_inode()
126 return p + ino % MINIX_INODES_PER_BLOCK; minix_V1_raw_inode()
130 minix_V2_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) minix_V2_raw_inode() argument
138 if (!ino || ino > sbi->s_ninodes) { minix_V2_raw_inode()
140 sb->s_id, (long)ino); minix_V2_raw_inode()
143 ino--; minix_V2_raw_inode()
145 ino / minix2_inodes_per_block; minix_V2_raw_inode()
152 return p + ino % minix2_inodes_per_block; minix_V2_raw_inode()
188 unsigned long ino, bit; minix_free_inode() local
190 ino = inode->i_ino; minix_free_inode()
191 if (ino < 1 || ino > sbi->s_ninodes) { minix_free_inode()
195 bit = ino & ((1<<k) - 1); minix_free_inode()
196 ino >>= k; minix_free_inode()
197 if (ino >= sbi->s_imap_blocks) { minix_free_inode()
204 bh = sbi->s_imap[ino]; minix_free_inode()
H A Dnamei.c24 ino_t ino; minix_lookup() local
29 ino = minix_inode_by_name(dentry); minix_lookup()
30 if (ino) { minix_lookup()
31 inode = minix_iget(dir->i_sb, ino); minix_lookup()
/linux-4.1.27/fs/efs/
H A Dnamei.c76 static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino, efs_nfs_get_inode() argument
81 if (ino == 0) efs_nfs_get_inode()
83 inode = efs_iget(sb, ino); efs_nfs_get_inode()
112 efs_ino_t ino; efs_get_parent() local
114 ino = efs_find_entry(d_inode(child), "..", 2); efs_get_parent()
115 if (ino) efs_get_parent()
116 parent = d_obtain_alias(efs_iget(d_inode(child)->i_sb, ino)); efs_get_parent()
/linux-4.1.27/fs/hostfs/
H A Dhostfs_kern.c124 static char *inode_name(struct inode *ino) inode_name() argument
129 dentry = d_find_alias(ino); inode_name()
283 unsigned long long next, ino; hostfs_readdir() local
296 while ((name = read_dir(dir, &next, &ino, &len, &type)) != NULL) { hostfs_readdir()
297 if (!dir_emit(ctx, name, len, ino, type)) hostfs_readdir()
305 static int hostfs_open(struct inode *ino, struct file *file) hostfs_open() argument
313 if ((mode & HOSTFS_I(ino)->mode) == mode) hostfs_open()
316 mode |= HOSTFS_I(ino)->mode; hostfs_open()
335 mutex_lock(&HOSTFS_I(ino)->open_mutex); hostfs_open()
337 if ((mode & HOSTFS_I(ino)->mode) == mode) { hostfs_open()
338 mutex_unlock(&HOSTFS_I(ino)->open_mutex); hostfs_open()
342 if ((mode | HOSTFS_I(ino)->mode) != mode) { hostfs_open()
343 mode |= HOSTFS_I(ino)->mode; hostfs_open()
344 mutex_unlock(&HOSTFS_I(ino)->open_mutex); hostfs_open()
348 if (HOSTFS_I(ino)->fd == -1) { hostfs_open()
349 HOSTFS_I(ino)->fd = fd; hostfs_open()
351 err = replace_file(fd, HOSTFS_I(ino)->fd); hostfs_open()
354 mutex_unlock(&HOSTFS_I(ino)->open_mutex); hostfs_open()
358 HOSTFS_I(ino)->mode = mode; hostfs_open()
359 mutex_unlock(&HOSTFS_I(ino)->open_mutex); hostfs_open()
518 static int read_name(struct inode *ino, char *name) read_name() argument
531 ino->i_op = &hostfs_link_iops; read_name()
534 ino->i_op = &hostfs_dir_iops; read_name()
535 ino->i_fop = &hostfs_dir_fops; read_name()
541 init_special_inode(ino, st.mode & S_IFMT, rdev); read_name()
542 ino->i_op = &hostfs_iops; read_name()
545 ino->i_op = &hostfs_iops; read_name()
546 ino->i_fop = &hostfs_file_fops; read_name()
547 ino->i_mapping->a_ops = &hostfs_aops; read_name()
553 ino->i_ino = st.ino; read_name()
554 ino->i_mode = st.mode; read_name()
555 set_nlink(ino, st.nlink); read_name()
556 i_uid_write(ino, st.uid); read_name()
557 i_gid_write(ino, st.gid); read_name()
558 ino->i_atime = st.atime; read_name()
559 ino->i_mtime = st.mtime; read_name()
560 ino->i_ctime = st.ctime; read_name()
561 ino->i_size = st.size; read_name()
562 ino->i_blocks = st.blocks; read_name()
605 static struct dentry *hostfs_lookup(struct inode *ino, struct dentry *dentry, hostfs_lookup() argument
612 inode = hostfs_iget(ino->i_sb); hostfs_lookup()
642 static int hostfs_link(struct dentry *to, struct inode *ino, hostfs_link() argument
661 static int hostfs_unlink(struct inode *ino, struct dentry *dentry) hostfs_unlink() argument
677 static int hostfs_symlink(struct inode *ino, struct dentry *dentry, hostfs_symlink() argument
690 static int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) hostfs_mkdir() argument
702 static int hostfs_rmdir(struct inode *ino, struct dentry *dentry) hostfs_rmdir() argument
780 static int hostfs_permission(struct inode *ino, int desired) hostfs_permission() argument
791 name = inode_name(ino); hostfs_permission()
795 if (S_ISCHR(ino->i_mode) || S_ISBLK(ino->i_mode) || hostfs_permission()
796 S_ISFIFO(ino->i_mode) || S_ISSOCK(ino->i_mode)) hostfs_permission()
802 err = generic_permission(ino, desired); hostfs_permission()
H A Dhostfs.h52 unsigned long long ino; member in struct:hostfs_stat
/linux-4.1.27/fs/bfs/
H A Ddir.c24 int namelen, int ino);
54 if (de->ino) { bfs_readdir()
57 le16_to_cpu(de->ino), bfs_readdir()
85 unsigned long ino; bfs_create() local
91 ino = find_first_zero_bit(info->si_imap, info->si_lasti + 1); bfs_create()
92 if (ino > info->si_lasti) { bfs_create()
97 set_bit(ino, info->si_imap); bfs_create()
105 inode->i_ino = ino; bfs_create()
106 BFS_I(inode)->i_dsk_ino = ino; bfs_create()
140 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); bfs_lookup() local
142 inode = bfs_iget(dir->i_sb, ino); bfs_lookup()
186 if (!bh || (le16_to_cpu(de->ino) != inode->i_ino)) bfs_unlink()
195 de->ino = 0; bfs_unlink()
230 if (!old_bh || (le16_to_cpu(old_de->ino) != old_inode->i_ino)) bfs_rename()
251 old_de->ino = 0; bfs_rename()
277 int namelen, int ino) bfs_add_entry()
299 if (!de->ino) { bfs_add_entry()
307 de->ino = cpu_to_le16((u16)ino); bfs_add_entry()
351 if (le16_to_cpu(de->ino) && bfs_find_entry()
276 bfs_add_entry(struct inode *dir, const unsigned char *name, int namelen, int ino) bfs_add_entry() argument
H A Dinode.c34 struct inode *bfs_iget(struct super_block *sb, unsigned long ino) bfs_iget() argument
41 inode = iget_locked(sb, ino); bfs_iget()
47 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) { bfs_iget()
48 printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino); bfs_iget()
52 block = (ino - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1; bfs_iget()
56 ino); bfs_iget()
60 off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; bfs_iget()
99 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p) find_inode() argument
101 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) { find_inode()
102 printf("Bad inode number %s:%08x\n", sb->s_id, ino); find_inode()
106 ino -= BFS_ROOT_INO; find_inode()
108 *p = sb_bread(sb, 1 + ino / BFS_INODES_PER_BLOCK); find_inode()
110 printf("Unable to read inode %s:%08x\n", sb->s_id, ino); find_inode()
114 return (struct bfs_inode *)(*p)->b_data + ino % BFS_INODES_PER_BLOCK; find_inode()
120 unsigned int ino = (u16)inode->i_ino; bfs_write_inode() local
126 dprintf("ino=%08x\n", ino); bfs_write_inode()
128 di = find_inode(inode->i_sb, ino, &bh); bfs_write_inode()
134 if (ino == BFS_ROOT_INO) bfs_write_inode()
139 di->i_ino = cpu_to_le16(ino); bfs_write_inode()
165 unsigned long ino = inode->i_ino; bfs_evict_inode() local
172 dprintf("ino=%08lx\n", ino); bfs_evict_inode()
195 clear_bit(ino, info->si_imap); bfs_evict_inode()
H A Dbfs.h48 extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino);
/linux-4.1.27/fs/freevxfs/
H A Dvxfs_inode.c52 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino) vxfs_dumpi() argument
55 if (ino) vxfs_dumpi()
56 printk(KERN_DEBUG "dumping vxfs inode %ld\n", ino); vxfs_dumpi()
75 * @ino: inode number to search
78 * vxfs_blkiget searches inode @ino in the filesystem described by
88 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) vxfs_blkiget() argument
93 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); vxfs_blkiget()
94 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); vxfs_blkiget()
106 vxfs_dumpi(vip, ino); vxfs_blkiget()
121 * @ino: inode number
125 * Search the for inode number @ino in the filesystem
130 __vxfs_iget(ino_t ino, struct inode *ilistp) __vxfs_iget() argument
135 offset = (ino % (PAGE_SIZE / VXFS_ISIZE)) * VXFS_ISIZE; __vxfs_iget()
136 pp = vxfs_get_page(ilistp->i_mapping, ino * VXFS_ISIZE / PAGE_SIZE); __vxfs_iget()
148 vxfs_dumpi(vip, ino); __vxfs_iget()
158 printk(KERN_WARNING "vxfs: unable to read inode %ld\n", (unsigned long)ino); __vxfs_iget()
166 * @ino: inode #
169 * Find inode @ino in the filesystem described by @sbp using
174 vxfs_stiget(struct super_block *sbp, ino_t ino) vxfs_stiget() argument
178 vip = __vxfs_iget(ino, VXFS_SBI(sbp)->vsi_stilist); vxfs_stiget()
286 * @ino: the number of the inode to get
289 * vxfs_read_inode creates an inode, reads the disk inode for @ino and fills
293 vxfs_iget(struct super_block *sbp, ino_t ino) vxfs_iget() argument
299 ip = iget_locked(sbp, ino); vxfs_iget()
305 vip = __vxfs_iget(ino, VXFS_SBI(sbp)->vsi_ilist); vxfs_iget()
H A Dvxfs_lookup.c179 ino_t ino = 0; vxfs_inode_by_name() local
183 ino = de->d_ino; vxfs_inode_by_name()
188 return (ino); vxfs_inode_by_name()
209 ino_t ino; vxfs_lookup() local
214 ino = vxfs_inode_by_name(dip, dp); vxfs_lookup()
215 if (ino) { vxfs_lookup()
216 ip = vxfs_iget(dip->i_sb, ino); vxfs_lookup()
/linux-4.1.27/fs/squashfs/
H A Dexport.c50 * Look-up inode number (ino) in table, returning the inode location.
58 __le64 ino; squashfs_inode_lookup() local
63 err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino)); squashfs_inode_lookup()
68 (u64) le64_to_cpu(ino)); squashfs_inode_lookup()
70 return le64_to_cpu(ino); squashfs_inode_lookup()
77 long long ino; squashfs_export_iget() local
82 ino = squashfs_inode_lookup(sb, ino_num); squashfs_export_iget()
83 if (ino >= 0) squashfs_export_iget()
84 dentry = d_obtain_alias(squashfs_iget(sb, ino, ino_num)); squashfs_export_iget()
97 return squashfs_export_iget(sb, fid->i32.ino); squashfs_fh_to_dentry()
H A Dinode.c84 struct inode *squashfs_iget(struct super_block *sb, long long ino, squashfs_iget() argument
97 err = squashfs_read_inode(inode, ino); squashfs_iget()
112 int squashfs_read_inode(struct inode *inode, long long ino) squashfs_read_inode() argument
116 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; squashfs_read_inode()
117 int err, type, offset = SQUASHFS_INODE_OFFSET(ino); squashfs_read_inode()
136 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; squashfs_read_inode()
137 offset = SQUASHFS_INODE_OFFSET(ino); squashfs_read_inode()
180 "%llx, offset %x\n", SQUASHFS_INODE_BLK(ino), squashfs_read_inode()
227 "%llx, offset %x\n", SQUASHFS_INODE_BLK(ino), squashfs_read_inode()
250 SQUASHFS_INODE_BLK(ino), offset, squashfs_read_inode()
277 "%x\n", SQUASHFS_INODE_BLK(ino), offset, squashfs_read_inode()
314 "%x\n", SQUASHFS_INODE_BLK(ino), offset, squashfs_read_inode()
337 SQUASHFS_INODE_BLK(ino), offset, rdev); squashfs_read_inode()
361 SQUASHFS_INODE_BLK(ino), offset, rdev); squashfs_read_inode()
420 ERROR("Unable to read inode 0x%llx\n", ino); squashfs_read_inode()
H A Dnamei.c214 long long ino; squashfs_lookup() local
219 ino = SQUASHFS_MKINODE(blk, off); squashfs_lookup()
225 inode = squashfs_iget(dir->i_sb, ino, ino_num); squashfs_lookup()
/linux-4.1.27/fs/qnx4/
H A Ddir.c25 int ix, ino; qnx4_readdir() local
53 ino = blknum * QNX4_INODES_PER_BLOCK + ix - 1; qnx4_readdir()
56 ino = ( le32_to_cpu(le->dl_inode_blk) - 1 ) * qnx4_readdir()
60 if (!dir_emit(ctx, de->di_fname, size, ino, DT_UNKNOWN)) { qnx4_readdir()
H A Dnamei.c57 const char *name, struct qnx4_inode_entry **res_dir, int *ino) qnx4_find_entry()
77 *ino = block * QNX4_INODES_PER_BLOCK + qnx4_find_entry()
96 int ino; qnx4_lookup() local
104 if (!(bh = qnx4_find_entry(len, dir, name, &de, &ino))) qnx4_lookup()
109 ino = (le32_to_cpu(lnk->dl_inode_blk) - 1) * qnx4_lookup()
115 foundinode = qnx4_iget(dir->i_sb, ino); qnx4_lookup()
56 qnx4_find_entry(int len, struct inode *dir, const char *name, struct qnx4_inode_entry **res_dir, int *ino) qnx4_find_entry() argument
H A Dinode.c260 struct inode *qnx4_iget(struct super_block *sb, unsigned long ino) qnx4_iget() argument
268 inode = iget_locked(sb, ino); qnx4_iget()
277 QNX4DEBUG((KERN_INFO "reading inode : [%d]\n", ino)); qnx4_iget()
278 if (!ino) { qnx4_iget()
281 sb->s_id, ino); qnx4_iget()
285 block = ino / QNX4_INODES_PER_BLOCK; qnx4_iget()
294 (ino % QNX4_INODES_PER_BLOCK); qnx4_iget()
323 ino, sb->s_id); qnx4_iget()
/linux-4.1.27/fs/jffs2/
H A Dbuild.c57 dbg_fsbuild("building directory inode #%u\n", ic->ino); jffs2_build_inode_pass1()
62 if (!fd->ino) jffs2_build_inode_pass1()
67 child_ic = jffs2_get_ino_cache(c, fd->ino); jffs2_build_inode_pass1()
69 dbg_fsbuild("child \"%s\" (ino #%u) of dir ino #%u doesn't exist!\n", jffs2_build_inode_pass1()
70 fd->name, fd->ino, ic->ino); jffs2_build_inode_pass1()
88 dbg_fsbuild("increased nlink for child \"%s\" (ino #%u)\n", fd->name, fd->ino); jffs2_build_inode_pass1()
152 ic = jffs2_get_ino_cache(c, fd->ino);
183 * parent ino# now. Now that there's hopefully only for_each_inode()
200 JFFS2_ERROR("child dir \"%s\" (ino #%u) of dir ino #%u is also hard linked from dir ino #%u\n", for_each_inode()
201 fd->name, fd->ino, ic->ino, fd->ic->pino_nlink); for_each_inode()
206 fd->ic->pino_nlink = ic->ino; for_each_inode()
245 dbg_fsbuild("removing ino #%u with nlink == zero.\n", ic->ino); jffs2_build_remove_unlinked_inode()
257 dbg_fsbuild("inode #%u was a directory which may have children...\n", ic->ino); jffs2_build_remove_unlinked_inode()
265 if (!fd->ino) { jffs2_build_remove_unlinked_inode()
274 dbg_fsbuild("removing child \"%s\", ino #%u\n", fd->name, fd->ino); jffs2_build_remove_unlinked_inode()
276 child_ic = jffs2_get_ino_cache(c, fd->ino); jffs2_build_remove_unlinked_inode()
278 dbg_fsbuild("cannot remove child \"%s\", ino #%u, because it doesn't exist\n", jffs2_build_remove_unlinked_inode()
279 fd->name, fd->ino); jffs2_build_remove_unlinked_inode()
290 fd->ino, fd->name); jffs2_build_remove_unlinked_inode()
295 fd->ino, fd->name, child_ic->pino_nlink); jffs2_build_remove_unlinked_inode()
H A Dwrite.c41 jffs2_dbg(1, "%s(): Assigned ino# %d\n", __func__, f->inocache->ino); jffs2_do_new_inode()
42 ri->ino = cpu_to_je32(f->inocache->ino); jffs2_do_new_inode()
110 (alloc_mode==ALLOC_GC)?0:f->inocache->ino); jffs2_write_dnode()
216 jffs2_dbg(1, "%s(ino #%u, name at *0x%p \"%s\"->ino #%u, name_crc 0x%08x)\n", jffs2_write_dirent()
218 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), jffs2_write_dirent()
230 pr_crit("Directory inode #%u, name at *0x%p \"%s\"->ino #%u, name_crc 0x%08x\n", jffs2_write_dirent()
231 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), jffs2_write_dirent()
247 fd->ino = je32_to_cpu(rd->ino); jffs2_write_dirent()
348 __func__, f->inocache->ino, offset, writelen); jffs2_write_inode_range()
379 ri->ino = cpu_to_je32(f->inocache->ino); jffs2_write_inode_range()
514 rd->pino = cpu_to_je32(dir_f->inocache->ino); jffs2_do_create()
516 rd->ino = ri->ino; jffs2_do_create()
577 rd->pino = cpu_to_je32(dir_f->inocache->ino); jffs2_do_unlink()
579 rd->ino = cpu_to_je32(0); jffs2_do_unlink()
613 jffs2_dbg(1, "Marking old dirent node (ino #%u) @%08x obsolete\n", jffs2_do_unlink()
614 fd->ino, ref_offset(fd->raw)); jffs2_do_unlink()
621 fd->ino = 0; jffs2_do_unlink()
642 if (fd->ino) { jffs2_do_unlink()
643 pr_warn("Deleting inode #%u with active dentry \"%s\"->ino #%u\n", jffs2_do_unlink()
644 dead_f->inocache->ino, jffs2_do_unlink()
645 fd->name, fd->ino); jffs2_do_unlink()
647 jffs2_dbg(1, "Removing deletion dirent for \"%s\" from dir ino #%u\n", jffs2_do_unlink()
649 dead_f->inocache->ino); jffs2_do_unlink()
668 int jffs2_do_link (struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint32_t ino, uint8_t type, const char *name, int namelen, uint32_t time) jffs2_do_link() argument
694 rd->pino = cpu_to_je32(dir_f->inocache->ino); jffs2_do_link()
696 rd->ino = cpu_to_je32(ino); jffs2_do_link()
H A Dnodelist.c30 dbg_dentlist("add dirent \"%s\", ino #%u\n", new->name, new->ino); jffs2_add_fd_to_list()
36 dbg_dentlist("Eep! Marking new dirent node obsolete, old is \"%s\", ino #%u\n", jffs2_add_fd_to_list()
37 (*prev)->name, (*prev)->ino); jffs2_add_fd_to_list()
41 dbg_dentlist("marking old dirent \"%s\", ino #%u obsolete\n", jffs2_add_fd_to_list()
42 (*prev)->name, (*prev)->ino); jffs2_add_fd_to_list()
421 struct jffs2_inode_cache *jffs2_get_ino_cache(struct jffs2_sb_info *c, uint32_t ino) jffs2_get_ino_cache() argument
425 ret = c->inocache_list[ino % c->inocache_hashsize]; jffs2_get_ino_cache()
426 while (ret && ret->ino < ino) { jffs2_get_ino_cache()
430 if (ret && ret->ino != ino) jffs2_get_ino_cache()
441 if (!new->ino) jffs2_add_ino_cache()
442 new->ino = ++c->highest_ino; jffs2_add_ino_cache()
444 dbg_inocache("add %p (ino #%u)\n", new, new->ino); jffs2_add_ino_cache()
446 prev = &c->inocache_list[new->ino % c->inocache_hashsize]; jffs2_add_ino_cache()
448 while ((*prev) && (*prev)->ino < new->ino) { jffs2_add_ino_cache()
464 dbg_inocache("del %p (ino #%u)\n", old, old->ino); jffs2_del_ino_cache()
467 prev = &c->inocache_list[old->ino % c->inocache_hashsize]; jffs2_del_ino_cache()
469 while ((*prev) && (*prev)->ino < old->ino) { jffs2_del_ino_cache()
H A Dgc.c170 jffs2_dbg(1, "Skipping check of ino #%d with nlink/pino zero\n", jffs2_garbage_collect_pass()
171 ic->ino); jffs2_garbage_collect_pass()
179 jffs2_dbg(1, "Skipping ino #%u already checked\n", jffs2_garbage_collect_pass()
180 ic->ino); jffs2_garbage_collect_pass()
187 ic->ino, ic->state); jffs2_garbage_collect_pass()
195 jffs2_dbg(1, "Waiting for ino #%u to finish reading\n", jffs2_garbage_collect_pass()
196 ic->ino); jffs2_garbage_collect_pass()
214 jffs2_dbg(1, "%s(): triggering inode scan of ino#%u\n", jffs2_garbage_collect_pass()
215 __func__, ic->ino); jffs2_garbage_collect_pass()
219 pr_warn("Returned error for crccheck of ino #%u. Expect badness...\n", jffs2_garbage_collect_pass()
220 ic->ino); jffs2_garbage_collect_pass()
332 jffs2_dbg(1, "%s(): collecting from block @0x%08x. Node @0x%08x(%d), ino #%u\n", jffs2_garbage_collect_pass()
334 ic->ino); jffs2_garbage_collect_pass()
355 ic->ino); jffs2_garbage_collect_pass()
372 ic->ino, ic->state); jffs2_garbage_collect_pass()
385 jffs2_dbg(1, "%s(): waiting for ino #%u in state %d\n", jffs2_garbage_collect_pass()
386 __func__, ic->ino, ic->state); jffs2_garbage_collect_pass()
430 inum = ic->ino; jffs2_garbage_collect_pass()
551 if (fd && fd->ino) { jffs2_garbage_collect_live()
556 pr_warn("Raw node at 0x%08x wasn't in node lists for ino #%u\n", jffs2_garbage_collect_live()
557 ref_offset(raw), f->inocache->ino); jffs2_garbage_collect_live()
798 ri.ino = cpu_to_je32(f->inocache->ino); jffs2_garbage_collect_metadata()
844 rd.pino = cpu_to_je32(f->inocache->ino); jffs2_garbage_collect_dirent()
846 rd.ino = cpu_to_je32(fd->ino); jffs2_garbage_collect_dirent()
948 if (rd->nsize != name_len || !je32_to_cpu(rd->ino)) jffs2_garbage_collect_deletion_dirent()
960 jffs2_dbg(1, "Deletion dirent at %08x still obsoletes real dirent \"%s\" at %08x for ino #%u\n", jffs2_garbage_collect_deletion_dirent()
962 ref_offset(raw), je32_to_cpu(rd->ino)); jffs2_garbage_collect_deletion_dirent()
985 pr_warn("Deletion dirent \"%s\" not found in list for ino #%u\n", jffs2_garbage_collect_deletion_dirent()
986 fd->name, f->inocache->ino); jffs2_garbage_collect_deletion_dirent()
1003 jffs2_dbg(1, "Writing replacement hole node for ino #%u from offset 0x%x to 0x%x\n", jffs2_garbage_collect_hole()
1004 f->inocache->ino, start, end); jffs2_garbage_collect_hole()
1038 start, end, f->inocache->ino); jffs2_garbage_collect_hole()
1045 start, end, f->inocache->ino); jffs2_garbage_collect_hole()
1055 ri.ino = cpu_to_je32(f->inocache->ino); jffs2_garbage_collect_hole()
1111 pr_warn("%s(): Replacing fn with %d frag(s) but new ver %d != highest_version %d of ino #%d\n", jffs2_garbage_collect_hole()
1113 f->highest_version, je32_to_cpu(ri.ino)); jffs2_garbage_collect_hole()
1158 jffs2_dbg(1, "Writing replacement dnode for ino #%u from offset 0x%x to 0x%x\n", jffs2_garbage_collect_dnode()
1159 f->inocache->ino, start, end); jffs2_garbage_collect_dnode()
1343 ri.ino = cpu_to_je32(f->inocache->ino); jffs2_garbage_collect_dnode()
H A Ddir.c82 uint32_t ino = 0; jffs2_lookup() local
104 ino = fd->ino; jffs2_lookup()
106 if (ino) { jffs2_lookup()
107 inode = jffs2_iget(dir_i->i_sb, ino); jffs2_lookup()
109 pr_warn("iget() failed for ino #%u\n", ino); jffs2_lookup()
135 jffs2_dbg(2, "Skipping dirent: \"%s\", ino #%u, type %d, because curofs %ld < offset %ld\n", jffs2_readdir()
136 fd->name, fd->ino, fd->type, curofs, (unsigned long)ctx->pos); jffs2_readdir()
139 if (!fd->ino) { jffs2_readdir()
145 jffs2_dbg(2, "Dirent %ld: \"%s\", ino #%u, type %d\n", jffs2_readdir()
146 (unsigned long)ctx->pos, fd->name, fd->ino, fd->type); jffs2_readdir()
147 if (!dir_emit(ctx, fd->name, strlen(fd->name), fd->ino, fd->type)) jffs2_readdir()
206 jffs2_dbg(1, "%s(): Created ino #%lu with mode %o, nlink %d(%d). nrpages %ld\n", jffs2_create()
263 ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now); jffs2_link()
400 rd->ino = cpu_to_je32(inode->i_ino); jffs2_symlink()
488 /* but ic->pino_nlink is the parent ino# */ jffs2_mkdir()
544 rd->ino = cpu_to_je32(inode->i_ino); jffs2_mkdir()
594 if (fd->ino) jffs2_rmdir()
717 rd->ino = cpu_to_je32(inode->i_ino); jffs2_mknod()
780 if (fd->ino) { jffs2_rename()
H A Dreadinode.c635 fd->ino = je32_to_cpu(rd->ino); read_direntry()
957 with this ino. Perform a preliminary ordering on data nodes, throwing away
972 dbg_readinode("ino #%u\n", f->inocache->ino); jffs2_get_inode_nodes()
983 if (!valid_ref && f->inocache->ino != 1) jffs2_get_inode_nodes()
984 JFFS2_WARNING("Eep. No valid nodes for ino #%u.\n", f->inocache->ino); jffs2_get_inode_nodes()
1113 f->inocache->ino, rii->highest_version, rii->latest_mctime, jffs2_get_inode_nodes()
1134 dbg_readinode("ino #%u pino/nlink is %d\n", f->inocache->ino, jffs2_do_read_inode_internal()
1139 /* Grab all nodes relevant to this ino */ jffs2_do_read_inode_internal()
1143 JFFS2_ERROR("cannot read nodes for ino %u, returned error is %d\n", f->inocache->ino, ret); jffs2_do_read_inode_internal()
1152 f->inocache->ino, ret); jffs2_do_read_inode_internal()
1181 if (f->inocache->ino != 1) { jffs2_do_read_inode_internal()
1182 JFFS2_WARNING("no data nodes found for ino #%u\n", f->inocache->ino); jffs2_do_read_inode_internal()
1214 f->inocache->ino, ref_offset(rii.latest_ref)); jffs2_do_read_inode_internal()
1234 JFFS2_WARNING("Truncating ino #%u to %d bytes failed because it only had %d bytes to start with!\n", jffs2_do_read_inode_internal()
1235 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size); jffs2_do_read_inode_internal()
1291 f->inocache->ino, jemode_to_cpu(latest_node->mode)); jffs2_do_read_inode_internal()
1298 f->inocache->ino, jemode_to_cpu(latest_node->mode)); jffs2_do_read_inode_internal()
1306 f->inocache->ino, jemode_to_cpu(latest_node->mode)); jffs2_do_read_inode_internal()
1324 /* Scan the list of all nodes present for this ino, build map of versions, etc. */ jffs2_do_read_inode()
1326 uint32_t ino, struct jffs2_raw_inode *latest_node) jffs2_do_read_inode()
1328 dbg_readinode("read inode #%u\n", ino); jffs2_do_read_inode()
1332 f->inocache = jffs2_get_ino_cache(c, ino); jffs2_do_read_inode()
1347 dbg_readinode("waiting for ino #%u in state %d\n", ino, f->inocache->state); jffs2_do_read_inode()
1356 JFFS2_ERROR("Eep. Trying to read_inode #%u when it's already in state %d!\n", ino, f->inocache->state); jffs2_do_read_inode()
1367 if (!f->inocache && ino == 1) { jffs2_do_read_inode()
1376 f->inocache->ino = f->inocache->pino_nlink = 1; jffs2_do_read_inode()
1382 JFFS2_ERROR("requestied to read an nonexistent ino %u\n", ino); jffs2_do_read_inode()
1325 jffs2_do_read_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, uint32_t ino, struct jffs2_raw_inode *latest_node) jffs2_do_read_inode() argument
H A Dfs.c44 jffs2_dbg(1, "%s(): ino #%lu\n", __func__, inode->i_ino); jffs2_do_setattr()
99 ri->ino = cpu_to_je32(inode->i_ino); jffs2_do_setattr()
243 jffs2_dbg(1, "%s(): ino #%lu mode %o\n", jffs2_evict_inode()
250 struct inode *jffs2_iget(struct super_block *sb, unsigned long ino) jffs2_iget() argument
260 jffs2_dbg(1, "%s(): ino == %lu\n", __func__, ino); jffs2_iget()
262 inode = iget_locked(sb, ino); jffs2_iget()
305 if (fd->type == DT_DIR && fd->ino) jffs2_iget()
352 pr_warn("%s(): Bogus i_mode %o for ino %lu\n", jffs2_iget()
376 jffs2_dbg(2, "%s(): not calling setattr() for ino #%lu\n", jffs2_dirty_inode()
381 jffs2_dbg(1, "%s(): calling setattr() for ino #%lu\n", jffs2_dirty_inode()
473 inode->i_ino = je32_to_cpu(ri->ino); jffs2_new_inode()
643 jffs2_dbg(1, "ilookup() failed for ino #%u; inode is probably deleted.\n", jffs2_gc_fetch_inode()
649 jffs2_dbg(1, "Inode cache for ino #%u is gone\n", jffs2_gc_fetch_inode()
656 jffs2_dbg(1, "Waiting for ino #%u in state %d\n", jffs2_gc_fetch_inode()
657 ic->ino, ic->state); jffs2_gc_fetch_inode()
675 pr_notice("Eep. read_inode() failed for ino #%u. unlinked %d\n", jffs2_gc_fetch_inode()
H A Dxattr.c426 * contain xid/ino, it's necessary to verify once while mounting process.
482 ref->ino = je32_to_cpu(rr.ino); verify_xattr_ref()
501 dbg_xattr("success on verifying xref (ino=%u, xid=%u) at %#08x\n", verify_xattr_ref()
502 ref->ino, ref->xid, ref_offset(ref->node)); verify_xattr_ref()
522 rr.ino = cpu_to_je32(ref->ino); save_xattr_ref()
525 rr.ino = cpu_to_je32(ref->ic->ino); save_xattr_ref()
545 dbg_xattr("success on saving xref (ino=%u, xid=%u)\n", ref->ic->ino, ref->xd->xid); save_xattr_ref()
583 ref->ino = ref->ic->ino; delete_xattr_ref()
590 dbg_xattr("xref(ino=%u, xid=%u, xseqno=%u) was removed.\n", delete_xattr_ref()
591 ref->ino, ref->xid, ref->xseqno); delete_xattr_ref()
804 i = (ref->ino ^ ref->xid) % XREF_TMPHASH_SIZE; jffs2_build_xattr_subsystem()
806 if (tmp->ino == ref->ino && tmp->xid == ref->xid) jffs2_build_xattr_subsystem()
839 /* At this point, ref->xid and ref->ino contain XID and inode number. jffs2_build_xattr_subsystem()
842 ic = jffs2_get_ino_cache(c, ref->ino); jffs2_build_xattr_subsystem()
844 dbg_xattr("xref(ino=%u, xid=%u, xseqno=%u) is orphan.\n", jffs2_build_xattr_subsystem()
845 ref->ino, ref->xid, ref->xseqno); jffs2_build_xattr_subsystem()
1131 ref->ino = ic->ino; do_jffs2_setxattr()
1273 dbg_xattr("xref (ino=%u, xid=%u) GC'ed from %#08x to %08x\n", jffs2_garbage_collect_xattr_ref()
1274 ref->ic->ino, ref->xd->xid, old_ofs, ref_offset(ref->node)); jffs2_garbage_collect_xattr_ref()
H A Dwbuf.c42 uint32_t ino; member in struct:jffs2_inodirty
48 static int jffs2_wbuf_pending_for_ino(struct jffs2_sb_info *c, uint32_t ino) jffs2_wbuf_pending_for_ino() argument
56 /* If ino == 0, _any_ non-GC writes mean 'yes' */ jffs2_wbuf_pending_for_ino()
57 if (this && !ino) jffs2_wbuf_pending_for_ino()
62 if (this->ino == ino) jffs2_wbuf_pending_for_ino()
85 static void jffs2_wbuf_dirties_inode(struct jffs2_sb_info *c, uint32_t ino) jffs2_wbuf_dirties_inode() argument
92 if (jffs2_wbuf_pending_for_ino(c, ino)) jffs2_wbuf_dirties_inode()
102 new->ino = ino; jffs2_wbuf_dirties_inode()
505 f = jffs2_gc_fetch_inode(c, ic->ino, !ic->pino_nlink); jffs2_wbuf_recover()
508 JFFS2_ERROR("Failed to iget() ino #%u, err %ld\n", jffs2_wbuf_recover()
509 ic->ino, PTR_ERR(f)); jffs2_wbuf_recover()
522 JFFS2_ERROR("Inode #%u is in strange state %d!\n", ic->ino, ic->state); jffs2_wbuf_recover()
699 If ino arg is zero, do it if _any_ real (i.e. not GC) writes are
700 outstanding. If ino arg non-zero, do it only if a write for the
702 int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino) jffs2_flush_wbuf_gc() argument
708 jffs2_dbg(1, "jffs2_flush_wbuf_gc() called for ino #%u...\n", ino); jffs2_flush_wbuf_gc()
714 if (!jffs2_wbuf_pending_for_ino(c, ino)) { jffs2_flush_wbuf_gc()
715 jffs2_dbg(1, "Ino #%d not pending in wbuf. Returning\n", ino); jffs2_flush_wbuf_gc()
796 uint32_t ino) jffs2_flash_writev()
901 * remember that the wbuf affects this ino jffs2_flash_writev()
911 if (c->wbuf_len && ino) jffs2_flash_writev()
912 jffs2_wbuf_dirties_inode(c, ino); jffs2_flash_writev()
794 jffs2_flash_writev(struct jffs2_sb_info *c, const struct kvec *invecs, unsigned long count, loff_t to, size_t *retlen, uint32_t ino) jffs2_flash_writev() argument
H A Dscan.c416 * ref->ino is used to store 32bit inode-number, ic is not used jffs2_scan_xref_node()
422 ref->ino = je32_to_cpu(rr->ino); jffs2_scan_xref_node()
434 dbg_xattr("scan xref at %#08x (xid=%u, ino=%u)\n", jffs2_scan_xref_node()
435 ofs, ref->xid, ref->ino); jffs2_scan_xref_node()
959 struct jffs2_inode_cache *jffs2_scan_make_ino_cache(struct jffs2_sb_info *c, uint32_t ino) jffs2_scan_make_ino_cache() argument
963 ic = jffs2_get_ino_cache(c, ino); jffs2_scan_make_ino_cache()
967 if (ino > c->highest_ino) jffs2_scan_make_ino_cache()
968 c->highest_ino = ino; jffs2_scan_make_ino_cache()
977 ic->ino = ino; jffs2_scan_make_ino_cache()
980 if (ino == 1) jffs2_scan_make_ino_cache()
989 uint32_t crc, ino = je32_to_cpu(ri->ino); jffs2_scan_inode_node() local
993 /* We do very little here now. Just check the ino# to which we should attribute jffs2_scan_inode_node()
1015 ic = jffs2_get_ino_cache(c, ino); jffs2_scan_inode_node()
1017 ic = jffs2_scan_make_ino_cache(c, ino); jffs2_scan_inode_node()
1025 jffs2_dbg(1, "Node is ino #%u, version %d. Range 0x%x-0x%x\n", jffs2_scan_inode_node()
1026 je32_to_cpu(ri->ino), je32_to_cpu(ri->version), jffs2_scan_inode_node()
1082 jffs2_dbg(1, "Name for which CRC failed is (now) '%s', ino #%d\n", jffs2_scan_dirent_node()
1083 fd->name, je32_to_cpu(rd->ino)); jffs2_scan_dirent_node()
1102 fd->ino = je32_to_cpu(rd->ino); jffs2_scan_dirent_node()
H A Dsummary.c82 je32_to_cpu(item->d.ino)); jffs2_sum_add_mem()
124 temp->inode = ri->ino; jffs2_sum_add_inode_mem()
147 temp->ino = rd->ino; jffs2_sum_add_dirent_mem()
272 temp->inode = node->i.ino; jffs2_sum_add_kvec()
293 temp->ino = node->d.ino; jffs2_sum_add_kvec()
392 int i, ino; jffs2_sum_process_sum_data() local
412 ino = je32_to_cpu(spi->inode); jffs2_sum_process_sum_data()
418 ic = jffs2_scan_make_ino_cache(c, ino); jffs2_sum_process_sum_data()
478 fd->ino = je32_to_cpu(spd->ino); jffs2_sum_process_sum_data()
744 sdrnt_ptr->ino = temp->d.ino; jffs2_sum_write_data()
H A Dfile.c89 jffs2_dbg(2, "%s(): ino #%lu, page at offset 0x%lx\n", jffs2_do_readpage_nolock()
174 ri.ino = cpu_to_je32(f->inocache->ino); jffs2_write_begin()
254 jffs2_dbg(1, "%s(): ino #%lu, page at 0x%lx, range %d-%d, flags %lx\n", jffs2_write_end()
283 ri->ino = cpu_to_je32(inode->i_ino); jffs2_write_end()
H A Djffs2_fs_i.h29 /* The highest (datanode) version number used for this ino */
H A Dread.c164 jffs2_dbg(1, "%s(): ino #%u, range 0x%08x-0x%08x\n", jffs2_read_inode_range()
165 __func__, f->inocache->ino, offset, offset + len); jffs2_read_inode_range()
181 jffs2_dbg(1, "Eep. Hole in ino #%u fraglist. frag->ofs = 0x%08x, offset = 0x%08x\n", jffs2_read_inode_range()
182 f->inocache->ino, frag->ofs, offset); jffs2_read_inode_range()
H A Dsuper.c113 static struct inode *jffs2_nfs_get_inode(struct super_block *sb, uint64_t ino, jffs2_nfs_get_inode() argument
119 return jffs2_iget(sb, ino); jffs2_nfs_get_inode()
147 JFFS2_DEBUG("Parent of directory ino #%u is #%u\n", jffs2_get_parent()
148 f->inocache->ino, pino); jffs2_get_parent()
H A Dnodelist.h144 #define dirent_node_state(rd) ( (je32_to_cpu((rd)->ino)?REF_PRISTINE:REF_NORMAL) )
174 uint32_t ino; member in struct:jffs2_inode_cache
210 struct inode for this particular ino is instantiated.
259 uint32_t ino; /* == zero for unlink */ member in struct:jffs2_full_dirent
267 data from for each part of the ino
366 struct jffs2_inode_cache *jffs2_get_ino_cache(struct jffs2_sb_info *c, uint32_t ino);
411 int jffs2_do_link(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint32_t ino,
417 uint32_t ino, struct jffs2_raw_inode *latest_node);
463 struct jffs2_inode_cache *jffs2_scan_make_ino_cache(struct jffs2_sb_info *c, uint32_t ino);
476 int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino);
H A Dos-linux.h115 int jffs2_flash_writev(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen, uint32_t ino);
124 int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino);
H A Dsummary.h61 jint32_t ino; /* == zero for unlink */ member in struct:jffs2_sum_dirent_flash
117 jint32_t ino; /* == zero for unlink */ member in struct:jffs2_sum_dirent_mem
H A Ddebug.c709 printk(JFFS2_DBG_MSG_PREFIX " dump fragtree of ino #%u\n", f->inocache->ino); __jffs2_dbg_dump_fragtree_nolock()
814 printk(JFFS2_DBG "ino:\t%#08x\n", je32_to_cpu(node.i.ino)); __jffs2_dbg_dump_node()
844 printk(JFFS2_DBG "ino:\t%#08x\n", je32_to_cpu(node.d.ino)); __jffs2_dbg_dump_node()
H A Dxattr.h56 uint32_t ino; /* only used in scanning/building */ member in union:jffs2_xattr_ref::__anon10988
/linux-4.1.27/fs/ocfs2/
H A Docfs2_trace.h528 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,
1065 TP_PROTO(unsigned long long ino, unsigned int cpos,
1068 TP_ARGS(ino, cpos, old, new, len, ext_flags),
1070 __field(unsigned long long, ino)
1078 __entry->ino = ino;
1086 __entry->ino, __entry->cpos, __entry->old, __entry->new,
1093 TP_PROTO(unsigned long long ino, unsigned int cpos,
1096 TP_ARGS(ino, cpos, write_len, max_cpos, cow_start, cow_len),
1098 __field(unsigned long long, ino)
1106 __entry->ino = ino;
1114 __entry->ino, __entry->cpos, __entry->write_len,
1123 TP_PROTO(unsigned long long ino, unsigned long long iblock,
1125 TP_ARGS(ino, iblock, bh_result, create),
1127 __field(unsigned long long, ino)
1133 __entry->ino = ino;
1139 __entry->ino, __entry->iblock,
1145 TP_PROTO(unsigned long long ino, unsigned long long iblock, \
1147 TP_ARGS(ino, iblock, bh_result, create))
1162 TP_PROTO(unsigned long long ino, unsigned int len,
1164 TP_ARGS(ino, len, pos, flags),
1166 __field(unsigned long long, ino)
1172 __entry->ino = ino;
1178 __entry->ino, __entry->len, __entry->pos, __entry->flags)
1182 TP_PROTO(unsigned long long ino,
1187 TP_ARGS(ino, i_size, i_clusters, pos, len, flags,
1190 __field(unsigned long long, ino)
1201 __entry->ino = ino;
1212 __entry->ino, __entry->i_size, __entry->i_clusters,
1219 TP_PROTO(unsigned long long ino,
1222 TP_ARGS(ino, pos, copied, id_count, features),
1224 __field(unsigned long long, ino)
1231 __entry->ino = ino;
1238 __entry->ino, __entry->pos, __entry->copied,
1247 TP_PROTO(unsigned long long ino,
1249 TP_ARGS(ino, area, page, pgoff),
1251 __field(unsigned long long, ino)
1257 __entry->ino = ino;
1263 __entry->ino, __entry->area, __entry->page, __entry->pgoff)
1272 unsigned long long ino,
1275 TP_ARGS(inode, file, dentry, ino, d_len, d_name, para),
1280 __field(unsigned long long, ino)
1289 __entry->ino = ino;
1295 __entry->dentry, __entry->ino, __entry->para,
1302 unsigned long long ino, \
1305 TP_ARGS(inode, file, dentry, ino, d_len, d_name, mode))
1352 TP_PROTO(unsigned long long ino,
1355 TP_ARGS(ino, di_clusters, di_size, ip_clusters, i_size),
1357 __field(unsigned long long, ino)
1364 __entry->ino = ino;
1370 TP_printk("%llu %u %llu %u %llu", __entry->ino, __entry->di_clusters,
1375 TP_PROTO(unsigned long long ino,
1379 TP_ARGS(ino, abs_from, abs_to, index, zero_from, zero_to),
1381 __field(unsigned long long, ino)
1389 __entry->ino = ino;
1396 TP_printk("%llu %llu %llu %lu %u %u", __entry->ino,
1407 unsigned long long ino,
1411 TP_ARGS(inode, dentry, ino, d_len, d_name,
1416 __field(unsigned long long, ino)
1427 __entry->ino = ino;
1436 __entry->dentry, __entry->ino, __entry->d_len,
1452 TP_PROTO(unsigned long long ino, unsigned long long saved_pos,
1455 TP_ARGS(ino, saved_pos, appending, count, direct_io, has_refcount),
1457 __field(unsigned long long, ino)
1465 __entry->ino = ino;
1472 TP_printk("%llu %llu %d %lu %d %d", __entry->ino,
1484 TP_PROTO(unsigned long long ino, unsigned int flags, int sysfile_type),
1485 TP_ARGS(ino, flags, sysfile_type),
1487 __field(unsigned long long, ino)
1492 __entry->ino = ino;
1496 TP_printk("%llu %u %d", __entry->ino,
1503 TP_PROTO(void *inode, unsigned long long ino),
1504 TP_ARGS(inode, ino),
1507 __field(unsigned long long, ino)
1511 __entry->ino = ino;
1513 TP_printk("%p %llu", __entry->inode, __entry->ino)
1517 TP_PROTO(void *inode, unsigned long long ino,
1519 TP_ARGS(inode, ino, args, fi_blkno),
1522 __field(unsigned long long, ino)
1528 __entry->ino = ino;
1532 TP_printk("%p %llu %p %llu", __entry->inode, __entry->ino,
1545 TP_PROTO(void *task, void *dc_task, unsigned long long ino,
1547 TP_ARGS(task, dc_task, ino, flags),
1551 __field(unsigned long long, ino)
1557 __entry->ino = ino;
1561 __entry->ino, __entry->flags)
1579 TP_PROTO(void *inode, unsigned long long ino,
1581 TP_ARGS(inode, ino, flags),
1584 __field(unsigned long long, ino)
1589 __entry->ino = ino;
1592 TP_printk("%p %llu %u", __entry->inode, __entry->ino, __entry->flags)
1763 TP_PROTO(unsigned long long ino, const char *name, int name_index,
1766 TP_ARGS(ino, name, name_index, hash, location, xe_index),
1768 __field(unsigned long long, ino)
1776 __entry->ino = ino;
1783 TP_printk("%llu %s %d %u %llu %d", __entry->ino, __get_str(name),
1790 TP_PROTO(unsigned long long ino, const char *name, int name_index, \
1793 TP_ARGS(ino, name, name_index, hash, bucket, xe_index))
2050 TP_PROTO(unsigned long long ino, int namelen, const char *name,
2053 TP_ARGS(ino, namelen, name, major_hash, minor_hash, blkno),
2055 __field(unsigned long long, ino)
2063 __entry->ino = ino;
2070 TP_printk("%llu %.*s %u %u %llu", __entry->ino,
2233 TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
2235 TP_ARGS(ino, old_len, old_name, name_len, name),
2237 __field(unsigned long long, ino)
2244 __entry->ino = ino;
2250 TP_printk("%llu %.*s %.*s", __entry->ino,
2477 unsigned long long ino),
2478 TP_ARGS(name, parent, ino),
2482 __field(unsigned long long, ino)
2487 __entry->ino = ino;
2489 TP_printk("%s %llu %llu", __get_str(name), __entry->parent, __entry->ino)
2521 unsigned long long ino),
2522 TP_ARGS(child, len, name, ino),
2527 __field(unsigned long long, ino)
2533 __entry->ino = ino;
2536 __get_str(name), __entry->ino)
H A Ddcache.c275 mlog_bug_on_msg(!dl, "parent %llu, ino %llu\n", ocfs2_dentry_attach_lock()
405 unsigned long long ino = 0ULL; ocfs2_dentry_iput() local
407 ino = (unsigned long long)OCFS2_I(inode)->ip_blkno; ocfs2_dentry_iput()
410 ino, dentry->d_flags, dentry); ocfs2_dentry_iput()
/linux-4.1.27/fs/ubifs/
H A Djournal.c65 * @ino: the inode to zero out
67 static inline void zero_ino_node_unused(struct ubifs_ino_node *ino) zero_ino_node_unused() argument
69 memset(ino->padding1, 0, 4); zero_ino_node_unused()
70 memset(ino->padding2, 0, 26); zero_ino_node_unused()
453 * @ino: buffer in which to pack inode node
457 static void pack_inode(struct ubifs_info *c, struct ubifs_ino_node *ino, pack_inode() argument
463 ino->ch.node_type = UBIFS_INO_NODE; pack_inode()
464 ino_key_init_flash(c, &ino->key, inode->i_ino); pack_inode()
465 ino->creat_sqnum = cpu_to_le64(ui->creat_sqnum); pack_inode()
466 ino->atime_sec = cpu_to_le64(inode->i_atime.tv_sec); pack_inode()
467 ino->atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); pack_inode()
468 ino->ctime_sec = cpu_to_le64(inode->i_ctime.tv_sec); pack_inode()
469 ino->ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); pack_inode()
470 ino->mtime_sec = cpu_to_le64(inode->i_mtime.tv_sec); pack_inode()
471 ino->mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); pack_inode()
472 ino->uid = cpu_to_le32(i_uid_read(inode)); pack_inode()
473 ino->gid = cpu_to_le32(i_gid_read(inode)); pack_inode()
474 ino->mode = cpu_to_le32(inode->i_mode); pack_inode()
475 ino->flags = cpu_to_le32(ui->flags); pack_inode()
476 ino->size = cpu_to_le64(ui->ui_size); pack_inode()
477 ino->nlink = cpu_to_le32(inode->i_nlink); pack_inode()
478 ino->compr_type = cpu_to_le16(ui->compr_type); pack_inode()
479 ino->data_len = cpu_to_le32(ui->data_len); pack_inode()
480 ino->xattr_cnt = cpu_to_le32(ui->xattr_cnt); pack_inode()
481 ino->xattr_size = cpu_to_le32(ui->xattr_size); pack_inode()
482 ino->xattr_names = cpu_to_le32(ui->xattr_names); pack_inode()
483 zero_ino_node_unused(ino); pack_inode()
490 memcpy(ino->data, ui->data, ui->data_len); pack_inode()
494 ubifs_prep_grp_node(c, ino, UBIFS_INO_NODE_SZ + data_len, last); pack_inode()
551 struct ubifs_ino_node *ino; ubifs_jnl_update() local
554 dbg_jnl("ino %lu, dent '%.*s', data len %d in dir ino %lu", ubifs_jnl_update()
605 ino = (void *)dent + aligned_dlen; ubifs_jnl_update()
606 pack_inode(c, ino, inode, 0); ubifs_jnl_update()
607 ino = (void *)ino + aligned_ilen; ubifs_jnl_update()
608 pack_inode(c, ino, dir, 1); ubifs_jnl_update()
704 dbg_jnlk(key, "ino %lu, blk %u, len %d, key ", ubifs_jnl_write_data()
787 struct ubifs_ino_node *ino; ubifs_jnl_write_inode() local
791 dbg_jnl("ino %lu, nlink %u", inode->i_ino, inode->i_nlink); ubifs_jnl_write_inode()
801 ino = kmalloc(len, GFP_NOFS); ubifs_jnl_write_inode()
802 if (!ino) ubifs_jnl_write_inode()
810 pack_inode(c, ino, inode, 1); ubifs_jnl_write_inode()
811 err = write_head(c, BASEHD, ino, len, &lnum, &offs, sync); ubifs_jnl_write_inode()
838 kfree(ino); ubifs_jnl_write_inode()
847 kfree(ino); ubifs_jnl_write_inode()
940 dbg_jnl("dent '%pd' in dir ino %lu to dent '%pd' in dir ino %lu", ubifs_jnl_rename()
1149 struct ubifs_ino_node *ino; ubifs_jnl_truncate() local
1157 dbg_jnl("ino %lu, size %lld -> %lld", ubifs_jnl_truncate()
1165 ino = kmalloc(sz, GFP_NOFS); ubifs_jnl_truncate()
1166 if (!ino) ubifs_jnl_truncate()
1169 trun = (void *)ino + UBIFS_INO_NODE_SZ; ubifs_jnl_truncate()
1215 pack_inode(c, ino, inode, 0); ubifs_jnl_truncate()
1220 err = write_head(c, BASEHD, ino, len, &lnum, &offs, sync); ubifs_jnl_truncate()
1260 kfree(ino); ubifs_jnl_truncate()
1269 kfree(ino); ubifs_jnl_truncate()
1291 struct ubifs_ino_node *ino; ubifs_jnl_delete_xattr() local
1296 dbg_jnl("host %lu, xattr ino %lu, name '%s', data len %d", ubifs_jnl_delete_xattr()
1333 ino = (void *)xent + aligned_xlen; ubifs_jnl_delete_xattr()
1334 pack_inode(c, ino, inode, 0); ubifs_jnl_delete_xattr()
1335 ino = (void *)ino + UBIFS_INO_NODE_SZ; ubifs_jnl_delete_xattr()
1336 pack_inode(c, ino, host, 1); ubifs_jnl_delete_xattr()
1404 struct ubifs_ino_node *ino; ubifs_jnl_change_xattr() local
1408 dbg_jnl("ino %lu, ino %lu", host->i_ino, inode->i_ino); ubifs_jnl_change_xattr()
1418 ino = kmalloc(aligned_len, GFP_NOFS); ubifs_jnl_change_xattr()
1419 if (!ino) ubifs_jnl_change_xattr()
1427 pack_inode(c, ino, host, 0); ubifs_jnl_change_xattr()
1428 pack_inode(c, (void *)ino + aligned_len1, inode, 1); ubifs_jnl_change_xattr()
1430 err = write_head(c, BASEHD, ino, aligned_len, &lnum, &offs, 0); ubifs_jnl_change_xattr()
1456 kfree(ino); ubifs_jnl_change_xattr()
1463 kfree(ino); ubifs_jnl_change_xattr()
H A Dsb.c79 struct ubifs_ino_node *ino; create_default_filesystem() local
292 ino = kzalloc(tmp, GFP_KERNEL); create_default_filesystem()
293 if (!ino) create_default_filesystem()
296 ino_key_init_flash(c, &ino->key, UBIFS_ROOT_INO); create_default_filesystem()
297 ino->ch.node_type = UBIFS_INO_NODE; create_default_filesystem()
298 ino->creat_sqnum = cpu_to_le64(++c->max_sqnum); create_default_filesystem()
299 ino->nlink = cpu_to_le32(2); create_default_filesystem()
301 ino->atime_sec = tmp_le64; create_default_filesystem()
302 ino->ctime_sec = tmp_le64; create_default_filesystem()
303 ino->mtime_sec = tmp_le64; create_default_filesystem()
304 ino->atime_nsec = 0; create_default_filesystem()
305 ino->ctime_nsec = 0; create_default_filesystem()
306 ino->mtime_nsec = 0; create_default_filesystem()
307 ino->mode = cpu_to_le32(S_IFDIR | S_IRUGO | S_IWUSR | S_IXUGO); create_default_filesystem()
308 ino->size = cpu_to_le64(UBIFS_INO_NODE_SZ); create_default_filesystem()
311 ino->flags = cpu_to_le32(UBIFS_COMPR_FL); create_default_filesystem()
313 err = ubifs_write_node(c, ino, UBIFS_INO_NODE_SZ, create_default_filesystem()
315 kfree(ino); create_default_filesystem()
H A Ddebug.c417 const struct ubifs_ino_node *ino = node; ubifs_dump_node() local
419 key_read(c, &ino->key, &key); ubifs_dump_node()
423 (unsigned long long)le64_to_cpu(ino->creat_sqnum)); ubifs_dump_node()
425 (unsigned long long)le64_to_cpu(ino->size)); ubifs_dump_node()
426 pr_err("\tnlink %u\n", le32_to_cpu(ino->nlink)); ubifs_dump_node()
428 (long long)le64_to_cpu(ino->atime_sec), ubifs_dump_node()
429 le32_to_cpu(ino->atime_nsec)); ubifs_dump_node()
431 (long long)le64_to_cpu(ino->mtime_sec), ubifs_dump_node()
432 le32_to_cpu(ino->mtime_nsec)); ubifs_dump_node()
434 (long long)le64_to_cpu(ino->ctime_sec), ubifs_dump_node()
435 le32_to_cpu(ino->ctime_nsec)); ubifs_dump_node()
436 pr_err("\tuid %u\n", le32_to_cpu(ino->uid)); ubifs_dump_node()
437 pr_err("\tgid %u\n", le32_to_cpu(ino->gid)); ubifs_dump_node()
438 pr_err("\tmode %u\n", le32_to_cpu(ino->mode)); ubifs_dump_node()
439 pr_err("\tflags %#x\n", le32_to_cpu(ino->flags)); ubifs_dump_node()
440 pr_err("\txattr_cnt %u\n", le32_to_cpu(ino->xattr_cnt)); ubifs_dump_node()
441 pr_err("\txattr_size %u\n", le32_to_cpu(ino->xattr_size)); ubifs_dump_node()
442 pr_err("\txattr_names %u\n", le32_to_cpu(ino->xattr_names)); ubifs_dump_node()
444 (int)le16_to_cpu(ino->compr_type)); ubifs_dump_node()
445 pr_err("\tdata len %u\n", le32_to_cpu(ino->data_len)); ubifs_dump_node()
537 pr_err("\t ino %llu\n", ubifs_dump_node()
1788 * @ino: raw UBIFS inode to add
1791 * inode @ino to the RB-tree of inodes. Returns inode information pointer in
1796 struct ubifs_ino_node *ino) add_inode()
1800 ino_t inum = key_inum_flash(c, &ino->key); add_inode()
1841 fscki->nlink = le32_to_cpu(ino->nlink); add_inode()
1842 fscki->size = le64_to_cpu(ino->size); add_inode()
1843 fscki->xattr_cnt = le32_to_cpu(ino->xattr_cnt); add_inode()
1844 fscki->xattr_sz = le32_to_cpu(ino->xattr_size); add_inode()
1845 fscki->xattr_nms = le32_to_cpu(ino->xattr_names); add_inode()
1846 fscki->mode = le32_to_cpu(ino->mode); add_inode()
1914 struct ubifs_ino_node *ino; read_add_inode() local
1939 ino = kmalloc(zbr->len, GFP_NOFS); read_add_inode()
1940 if (!ino) read_add_inode()
1943 err = ubifs_tnc_read_node(c, zbr, ino); read_add_inode()
1947 kfree(ino); read_add_inode()
1951 fscki = add_inode(c, fsckd, ino); read_add_inode()
1952 kfree(ino); read_add_inode()
2149 struct ubifs_ino_node *ino; check_inodes() local
2234 ino = kmalloc(zbr->len, GFP_NOFS); check_inodes()
2235 if (!ino) check_inodes()
2238 err = ubifs_tnc_read_node(c, zbr, ino); check_inodes()
2242 kfree(ino); check_inodes()
2248 ubifs_dump_node(c, ino); check_inodes()
2249 kfree(ino); check_inodes()
2416 * ascending (parent ino, hash) order. dbg_check_nondata_nodes_order()
1794 add_inode(struct ubifs_info *c, struct fsck_data *fsckd, struct ubifs_ino_node *ino) add_inode() argument
H A Dsuper.c105 struct ubifs_ino_node *ino; ubifs_iget() local
119 ino = kmalloc(UBIFS_MAX_INO_NODE_SZ, GFP_NOFS); ubifs_iget()
120 if (!ino) { ubifs_iget()
127 err = ubifs_tnc_lookup(c, &key, ino); ubifs_iget()
132 set_nlink(inode, le32_to_cpu(ino->nlink)); ubifs_iget()
133 i_uid_write(inode, le32_to_cpu(ino->uid)); ubifs_iget()
134 i_gid_write(inode, le32_to_cpu(ino->gid)); ubifs_iget()
135 inode->i_atime.tv_sec = (int64_t)le64_to_cpu(ino->atime_sec); ubifs_iget()
136 inode->i_atime.tv_nsec = le32_to_cpu(ino->atime_nsec); ubifs_iget()
137 inode->i_mtime.tv_sec = (int64_t)le64_to_cpu(ino->mtime_sec); ubifs_iget()
138 inode->i_mtime.tv_nsec = le32_to_cpu(ino->mtime_nsec); ubifs_iget()
139 inode->i_ctime.tv_sec = (int64_t)le64_to_cpu(ino->ctime_sec); ubifs_iget()
140 inode->i_ctime.tv_nsec = le32_to_cpu(ino->ctime_nsec); ubifs_iget()
141 inode->i_mode = le32_to_cpu(ino->mode); ubifs_iget()
142 inode->i_size = le64_to_cpu(ino->size); ubifs_iget()
144 ui->data_len = le32_to_cpu(ino->data_len); ubifs_iget()
145 ui->flags = le32_to_cpu(ino->flags); ubifs_iget()
146 ui->compr_type = le16_to_cpu(ino->compr_type); ubifs_iget()
147 ui->creat_sqnum = le64_to_cpu(ino->creat_sqnum); ubifs_iget()
148 ui->xattr_cnt = le32_to_cpu(ino->xattr_cnt); ubifs_iget()
149 ui->xattr_size = le32_to_cpu(ino->xattr_size); ubifs_iget()
150 ui->xattr_names = le32_to_cpu(ino->xattr_names); ubifs_iget()
170 memcpy(ui->data, ino->data, ui->data_len); ubifs_iget()
196 memcpy(ui->data, ino->data, ui->data_len); ubifs_iget()
211 dev = (union ubifs_dev_desc *)ino->data; ubifs_iget()
220 memcpy(ui->data, ino->data, ui->data_len); ubifs_iget()
239 kfree(ino); ubifs_iget()
246 ubifs_dump_node(c, ino); ubifs_iget()
250 kfree(ino); ubifs_iget()
H A Ddir.c193 dbg_gen("'%pd' in dir ino %lu", dentry, dir->i_ino); ubifs_lookup()
260 dbg_gen("dent '%pd', mode %#hx in dir ino %lu", ubifs_create()
360 dbg_gen("dir ino %lu, f_pos %#llx", dir->i_ino, ctx->pos); ubifs_readdir()
424 dbg_gen("feed '%s', ino %llu, new f_pos %#x", ubifs_readdir()
514 dbg_gen("dent '%pd' to ino %lu (nlink %d) in dir ino %lu", ubifs_link()
571 dbg_gen("dent '%pd' from ino %lu (nlink %d) in dir ino %lu", ubifs_unlink()
661 dbg_gen("directory '%pd', ino %lu in dir ino %lu", dentry, ubifs_rmdir()
721 dbg_gen("dent '%pd', mode %#hx in dir ino %lu", ubifs_mkdir()
788 dbg_gen("dent '%pd' in dir ino %lu", dentry, dir->i_ino); ubifs_mknod()
867 dbg_gen("dent '%pd', target '%s' in dir ino %lu", dentry, ubifs_symlink()
997 dbg_gen("dent '%pd' ino %lu in dir ino %lu to dent '%pd' in dir ino %lu", ubifs_rename()
/linux-4.1.27/fs/xfs/
H A Dxfs_trace.h47 __field(xfs_ino_t, ino)
60 __entry->ino = ctx->dp->i_ino;
70 TP_printk("dev %d:%d ino 0x%llx cursor h/b/o 0x%x/0x%x/%u dupcnt %u "
73 __entry->ino,
169 __field(xfs_ino_t, ino)
184 __entry->ino = ctx->dp->i_ino;
196 TP_printk("dev %d:%d ino 0x%llx cursor h/b/o 0x%x/0x%x/%u dupcnt %u "
200 __entry->ino,
221 __field(xfs_ino_t, ino)
232 __entry->ino = ip->i_ino;
241 TP_printk("dev %d:%d ino 0x%llx state %s idx %ld "
244 __entry->ino,
260 __field(xfs_ino_t, ino)
276 __entry->ino = ip->i_ino;
285 TP_printk("dev %d:%d ino 0x%llx state %s idx %ld "
288 __entry->ino,
547 __field(xfs_ino_t, ino)
553 __entry->ino = ip->i_ino;
557 TP_printk("dev %d:%d ino 0x%llx agno %u streams %d",
559 __entry->ino,
577 __field(xfs_ino_t, ino)
585 __entry->ino = ip->i_ino;
591 TP_printk("dev %d:%d ino 0x%llx agno %u streams %d free %d nscan %d",
593 __entry->ino,
606 __field(xfs_ino_t, ino)
612 __entry->ino = ip->i_ino;
616 TP_printk("dev %d:%d ino 0x%llx flags %s caller %ps",
618 __entry->ino,
638 __field(xfs_ino_t, ino)
642 __entry->ino = ip->i_ino;
644 TP_printk("dev %d:%d ino 0x%llx",
646 __entry->ino)
697 __field(xfs_ino_t, ino)
704 __entry->ino = ip->i_ino;
709 TP_printk("dev %d:%d ino 0x%llx count %d pincount %d caller %ps",
711 __entry->ino,
723 __field(xfs_ino_t, ino)
730 __entry->ino = ip->i_ino;
735 TP_printk("dev %d:%d ino 0x%llx prealloc blocks %llu shift %d "
737 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->ino,
766 TP_printk("dev %d:%d dp ino 0x%llx name %.*s",
806 TP_printk("dev %d:%d src dp ino 0x%llx target dp ino 0x%llx"
1094 __field(xfs_ino_t, ino)
1102 __entry->ino = ip->i_ino;
1108 TP_printk("dev %d:%d ino 0x%llx size 0x%llx "
1111 __entry->ino,
1133 __field(xfs_ino_t, ino)
1147 __entry->ino = XFS_I(inode)->i_ino;
1155 TP_printk("dev %d:%d ino 0x%llx pgoff 0x%lx size 0x%llx offset %lx "
1158 __entry->ino,
1182 __field(xfs_ino_t, ino)
1193 __entry->ino = ip->i_ino;
1202 TP_printk("dev %d:%d ino 0x%llx size 0x%llx offset 0x%llx count %zd "
1205 __entry->ino,
1235 __field(xfs_ino_t, ino)
1243 __entry->ino = ip->i_ino;
1249 TP_printk("dev %d:%d ino 0x%llx isize 0x%llx disize 0x%llx "
1252 __entry->ino,
1273 __field(xfs_ino_t, ino)
1279 __entry->ino = ip->i_ino;
1283 TP_printk("dev %d:%d ino 0x%llx size 0x%llx new_size 0x%llx",
1285 __entry->ino,
1302 __field(xfs_ino_t, ino)
1309 __entry->ino = ip->i_ino;
1314 TP_printk("dev %d:%d ino 0x%llx size 0x%llx start 0x%llx finish 0x%llx",
1316 __entry->ino,
1328 __field(xfs_ino_t, ino)
1337 __entry->ino = ip->i_ino;
1344 TP_printk("dev %d:%d ino 0x%llx size 0x%llx bno 0x%llx len 0x%llx"
1347 __entry->ino,
1634 __field(xfs_ino_t, ino)
1643 __entry->ino = args->dp->i_ino;
1651 TP_printk("dev %d:%d ino 0x%llx name %.*s namelen %d hashval 0x%x "
1654 __entry->ino,
1698 __field(xfs_ino_t, ino)
1707 __entry->ino = args->dp->i_ino;
1715 TP_printk("dev %d:%d ino 0x%llx name %.*s namelen %d valuelen %d "
1718 __entry->ino,
1806 __field(xfs_ino_t, ino)
1812 __entry->ino = args->dp->i_ino;
1816 TP_printk("dev %d:%d ino 0x%llx op_flags %s index %d",
1818 __entry->ino,
1837 __field(xfs_ino_t, ino)
1845 __entry->ino = args->dp->i_ino;
1851 TP_printk("dev %d:%d ino 0x%llx op_flags %s "
1854 __entry->ino,
1877 __field(xfs_ino_t, ino)
1886 __entry->ino = ip->i_ino;
1892 TP_printk("dev %d:%d ino 0x%llx (%s), %s format, num_extents %d, "
1895 __entry->ino,
2004 __field(xfs_ino_t, ino)
2015 __entry->ino = in_f->ilf_ino;
2024 TP_printk("dev %d:%d ino 0x%llx, size %u, fields 0x%x, asize %d, "
2027 __entry->ino,
H A Dxfs_export.c104 fid->i32.ino = XFS_I(inode)->i_ino; xfs_fs_encode_fh()
112 fid64->ino = XFS_I(inode)->i_ino; xfs_fs_encode_fh()
123 u64 ino, xfs_nfs_get_inode()
131 * NFS can sometimes send requests for ino 0. Fail them gracefully. xfs_nfs_get_inode()
133 if (ino == 0) xfs_nfs_get_inode()
141 error = xfs_iget(mp, NULL, ino, XFS_IGET_UNTRUSTED, 0, &ip); xfs_nfs_get_inode()
176 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); xfs_fs_fh_to_dentry()
180 inode = xfs_nfs_get_inode(sb, fid64->ino, fid64->gen); xfs_fs_fh_to_dentry()
121 xfs_nfs_get_inode( struct super_block *sb, u64 ino, u32 generation) xfs_nfs_get_inode() argument
H A Dxfs_itable.h27 xfs_ino_t ino,
62 xfs_ino_t ino,
72 xfs_ino_t ino,
H A Dxfs_quotaops.c37 xfs_ino_t ino) xfs_qm_fill_state()
42 tstate->ino = ino; xfs_qm_fill_state()
43 if (!ip && ino == NULLFSINO) xfs_qm_fill_state()
46 if (xfs_iget(mp, NULL, ino, 0, 0, &ip)) xfs_qm_fill_state()
33 xfs_qm_fill_state( struct qc_type_state *tstate, struct xfs_mount *mp, struct xfs_inode *ip, xfs_ino_t ino) xfs_qm_fill_state() argument
H A Dxfs_icache.h51 int xfs_iget(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino,
55 struct xfs_inode * xfs_inode_alloc(struct xfs_mount *mp, xfs_ino_t ino);
H A Dxfs_itable.c37 xfs_ino_t ino) xfs_internal_inum()
39 return (ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino || xfs_internal_inum()
41 xfs_is_quota_inode(&mp->m_sb, ino))); xfs_internal_inum()
51 xfs_ino_t ino, /* inode to get data for */ xfs_bulkstat_one_int()
65 if (!buffer || xfs_internal_inum(mp, ino)) xfs_bulkstat_one_int()
72 error = xfs_iget(mp, NULL, ino, xfs_bulkstat_one_int()
89 buf->bs_ino = ino; xfs_bulkstat_one_int()
161 xfs_ino_t ino, /* inode number to get data for */ xfs_bulkstat_one()
167 return xfs_bulkstat_one_int(mp, ino, buffer, ubsize, xfs_bulkstat_one()
35 xfs_internal_inum( xfs_mount_t *mp, xfs_ino_t ino) xfs_internal_inum() argument
49 xfs_bulkstat_one_int( struct xfs_mount *mp, xfs_ino_t ino, void __user *buffer, int ubsize, bulkstat_one_fmt_pf formatter, int *ubused, int *stat) xfs_bulkstat_one_int() argument
159 xfs_bulkstat_one( xfs_mount_t *mp, xfs_ino_t ino, void __user *buffer, int ubsize, int *ubused, int *stat) xfs_bulkstat_one() argument
H A Dxfs_export.h63 u64 ino; member in struct:xfs_fid64
H A Dxfs_icache.c49 xfs_ino_t ino) xfs_inode_alloc()
75 ip->i_ino = ino; xfs_inode_alloc()
144 xfs_ino_t ino,
160 if (ip->i_ino != ino) { __releases()
278 xfs_ino_t ino, xfs_iget_cache_miss()
285 xfs_agino_t agino = XFS_INO_TO_AGINO(mp, ino); xfs_iget_cache_miss()
288 ip = xfs_inode_alloc(mp, ino); xfs_iget_cache_miss()
383 * ino -- the number of the inode desired. This is the unique identifier
392 xfs_ino_t ino, xfs_iget()
412 if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) xfs_iget()
416 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino)); xfs_iget()
417 agino = XFS_INO_TO_AGINO(mp, ino); xfs_iget()
425 error = xfs_iget_cache_hit(pag, ip, ino, flags, lock_flags); xfs_iget()
432 error = xfs_iget_cache_miss(mp, pag, tp, ino, &ip, xfs_iget()
47 xfs_inode_alloc( struct xfs_mount *mp, xfs_ino_t ino) xfs_inode_alloc() argument
274 xfs_iget_cache_miss( struct xfs_mount *mp, struct xfs_perag *pag, xfs_trans_t *tp, xfs_ino_t ino, struct xfs_inode **ipp, int flags, int lock_flags) xfs_iget_cache_miss() argument
389 xfs_iget( xfs_mount_t *mp, xfs_trans_t *tp, xfs_ino_t ino, uint flags, uint lock_flags, xfs_inode_t **ipp) xfs_iget() argument
/linux-4.1.27/fs/hfsplus/
H A Dposix_acl.c20 hfs_dbg(ACL_MOD, "[%s]: ino %lu\n", __func__, inode->i_ino); hfsplus_get_posix_acl()
65 hfs_dbg(ACL_MOD, "[%s]: ino %lu\n", __func__, inode->i_ino); hfsplus_set_posix_acl()
117 "[%s]: ino %lu, dir->ino %lu\n", hfsplus_init_posix_acl()
/linux-4.1.27/fs/ext3/
H A Dialloc.c83 unsigned long ino; ext3_free_inode() local
109 ino = inode->i_ino; ext3_free_inode()
110 ext3_debug ("freeing inode %lu\n", ino); ext3_free_inode()
116 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { ext3_free_inode()
118 "reserved or nonexistent inode %lu", ino); ext3_free_inode()
121 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); ext3_free_inode()
122 bit = (ino - 1) % EXT3_INODES_PER_GROUP(sb); ext3_free_inode()
136 "bit already cleared for inode %lu", ino); ext3_free_inode()
353 unsigned long ino = 0; ext3_new_inode() local
397 ino = 0; ext3_new_inode()
400 ino = ext3_find_next_zero_bit((unsigned long *) ext3_new_inode()
401 bitmap_bh->b_data, EXT3_INODES_PER_GROUP(sb), ino); ext3_new_inode()
402 if (ino < EXT3_INODES_PER_GROUP(sb)) { ext3_new_inode()
410 ino, bitmap_bh->b_data)) { ext3_new_inode()
423 if (++ino < EXT3_INODES_PER_GROUP(sb)) ext3_new_inode()
441 ino += group * EXT3_INODES_PER_GROUP(sb) + 1; ext3_new_inode()
442 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { ext3_new_inode()
445 "block_group = %d, inode=%lu", group, ino); ext3_new_inode()
475 inode->i_ino = ino; ext3_new_inode()
516 if (ino >= EXT3_FIRST_INO(sb) + 1 && ext3_new_inode()
570 struct inode *ext3_orphan_get(struct super_block *sb, unsigned long ino) ext3_orphan_get() argument
580 if (ino > max_ino) { ext3_orphan_get()
582 "bad orphan ino %lu! e2fsck was run?", ino); ext3_orphan_get()
586 block_group = (ino - 1) / EXT3_INODES_PER_GROUP(sb); ext3_orphan_get()
587 bit = (ino - 1) % EXT3_INODES_PER_GROUP(sb); ext3_orphan_get()
591 "inode bitmap error for orphan %lu", ino); ext3_orphan_get()
602 inode = ext3_iget(sb, ino); ext3_orphan_get()
624 "bad orphan inode %lu! e2fsck was run?", ino); ext3_orphan_get()
/linux-4.1.27/include/uapi/linux/
H A Dbfs_fs.h45 __le16 ino; member in struct:bfs_dirent
67 #define BFS_INO2OFF(ino) \
68 ((__u32)(((ino) - BFS_ROOT_INO) * sizeof(struct bfs_inode)) + BFS_BSIZE)
H A Djffs2.h124 jint32_t ino; /* == zero for unlink */ member in struct:jffs2_raw_dirent
146 jint32_t ino; /* Inode number. */ member in struct:jffs2_raw_inode
187 jint32_t ino; /* inode number */ member in struct:jffs2_raw_xref
/linux-4.1.27/fs/nfs/
H A Dpnfs.c206 pnfs_alloc_layout_hdr(struct inode *ino, gfp_t gfp_flags) pnfs_alloc_layout_hdr() argument
208 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; pnfs_alloc_layout_hdr()
209 return ld->alloc_layout_hdr(ino, gfp_flags); pnfs_alloc_layout_hdr()
327 struct inode *ino = lseg->pls_layout->plh_inode; pnfs_free_lseg() local
329 NFS_SERVER(ino)->pnfs_curr_ld->free_lseg(lseg); pnfs_free_lseg()
863 struct inode *ino = lo->plh_inode; send_layoutget() local
864 struct nfs_server *server = NFS_SERVER(ino); send_layoutget()
880 lgp->args.inode = ino; send_layoutget()
932 struct inode *ino = lo->plh_inode; pnfs_send_layoutreturn() local
939 spin_lock(&ino->i_lock); pnfs_send_layoutreturn()
942 rpc_wake_up(&NFS_SERVER(ino)->roc_rpcwaitq); pnfs_send_layoutreturn()
943 spin_unlock(&ino->i_lock); pnfs_send_layoutreturn()
949 lrp->args.layout_type = NFS_SERVER(ino)->pnfs_curr_ld->id; pnfs_send_layoutreturn()
950 lrp->args.inode = ino; pnfs_send_layoutreturn()
955 lrp->clp = NFS_SERVER(ino)->nfs_client; pnfs_send_layoutreturn()
973 _pnfs_return_layout(struct inode *ino) _pnfs_return_layout() argument
976 struct nfs_inode *nfsi = NFS_I(ino); _pnfs_return_layout()
981 dprintk("NFS: %s for inode %lu\n", __func__, ino->i_ino); _pnfs_return_layout()
983 spin_lock(&ino->i_lock); _pnfs_return_layout()
986 spin_unlock(&ino->i_lock); _pnfs_return_layout()
994 pnfs_clear_layoutcommit(ino, &tmp_list); _pnfs_return_layout()
997 if (NFS_SERVER(ino)->pnfs_curr_ld->return_range) { _pnfs_return_layout()
1003 NFS_SERVER(ino)->pnfs_curr_ld->return_range(lo, &range); _pnfs_return_layout()
1008 spin_unlock(&ino->i_lock); _pnfs_return_layout()
1016 spin_unlock(&ino->i_lock); _pnfs_return_layout()
1053 bool pnfs_roc(struct inode *ino) pnfs_roc() argument
1055 struct nfs_inode *nfsi = NFS_I(ino); pnfs_roc()
1064 spin_lock(&ino->i_lock); pnfs_roc()
1071 if (nfs4_check_delegation(ino, FMODE_READ)) pnfs_roc()
1091 spin_unlock(&ino->i_lock); pnfs_roc()
1093 pnfs_layoutcommit_inode(ino, true); pnfs_roc()
1107 spin_unlock(&ino->i_lock); pnfs_roc()
1109 pnfs_layoutcommit_inode(ino, true); pnfs_roc()
1115 void pnfs_roc_release(struct inode *ino) pnfs_roc_release() argument
1119 spin_lock(&ino->i_lock); pnfs_roc_release()
1120 lo = NFS_I(ino)->layout; pnfs_roc_release()
1124 spin_unlock(&ino->i_lock); pnfs_roc_release()
1127 spin_unlock(&ino->i_lock); pnfs_roc_release()
1130 void pnfs_roc_set_barrier(struct inode *ino, u32 barrier) pnfs_roc_set_barrier() argument
1134 spin_lock(&ino->i_lock); pnfs_roc_set_barrier()
1135 lo = NFS_I(ino)->layout; pnfs_roc_set_barrier()
1138 spin_unlock(&ino->i_lock); pnfs_roc_set_barrier()
1141 bool pnfs_roc_drain(struct inode *ino, u32 *barrier, struct rpc_task *task) pnfs_roc_drain() argument
1143 struct nfs_inode *nfsi = NFS_I(ino); pnfs_roc_drain()
1150 spin_lock(&ino->i_lock); pnfs_roc_drain()
1153 rpc_sleep_on(&NFS_SERVER(ino)->roc_rpcwaitq, task, NULL); pnfs_roc_drain()
1175 spin_unlock(&ino->i_lock); pnfs_roc_drain()
1177 rpc_sleep_on(&NFS_SERVER(ino)->roc_rpcwaitq, task, NULL); pnfs_roc_drain()
1241 alloc_init_layout_hdr(struct inode *ino, alloc_init_layout_hdr() argument
1247 lo = pnfs_alloc_layout_hdr(ino, gfp_flags); alloc_init_layout_hdr()
1254 lo->plh_inode = ino; alloc_init_layout_hdr()
1260 pnfs_find_alloc_layout(struct inode *ino, pnfs_find_alloc_layout() argument
1264 struct nfs_inode *nfsi = NFS_I(ino); pnfs_find_alloc_layout()
1267 dprintk("%s Begin ino=%p layout=%p\n", __func__, ino, nfsi->layout); pnfs_find_alloc_layout()
1271 spin_unlock(&ino->i_lock); pnfs_find_alloc_layout()
1272 new = alloc_init_layout_hdr(ino, ctx, gfp_flags); pnfs_find_alloc_layout()
1273 spin_lock(&ino->i_lock); pnfs_find_alloc_layout()
1360 struct inode *ino, int iomode) pnfs_within_mdsthreshold()
1363 struct nfs_inode *nfsi = NFS_I(ino); pnfs_within_mdsthreshold()
1364 loff_t fsize = i_size_read(ino); pnfs_within_mdsthreshold()
1449 pnfs_update_layout(struct inode *ino, pnfs_update_layout() argument
1462 struct nfs_server *server = NFS_SERVER(ino); pnfs_update_layout()
1468 if (!pnfs_enabled_sb(NFS_SERVER(ino))) pnfs_update_layout()
1471 if (pnfs_within_mdsthreshold(ctx, ino, iomode)) pnfs_update_layout()
1476 spin_lock(&ino->i_lock); pnfs_update_layout()
1477 lo = pnfs_find_alloc_layout(ino, ctx, gfp_flags); pnfs_update_layout()
1479 spin_unlock(&ino->i_lock); pnfs_update_layout()
1501 spin_unlock(&ino->i_lock); pnfs_update_layout()
1522 spin_unlock(&ino->i_lock); pnfs_update_layout()
1537 spin_unlock(&ino->i_lock); pnfs_update_layout()
1567 __func__, ino->i_sb->s_id, pnfs_update_layout()
1568 (unsigned long long)NFS_FILEID(ino), pnfs_update_layout()
1575 spin_unlock(&ino->i_lock); pnfs_update_layout()
1586 struct inode *ino = lo->plh_inode; pnfs_layout_process() local
1591 lseg = NFS_SERVER(ino)->pnfs_curr_ld->alloc_lseg(lo, res, lgp->gfp_flags); pnfs_layout_process()
1605 spin_lock(&ino->i_lock); pnfs_layout_process()
1645 spin_unlock(&ino->i_lock); pnfs_layout_process()
1652 spin_unlock(&ino->i_lock); pnfs_layout_process()
1654 NFS_SERVER(ino)->pnfs_curr_ld->free_lseg(lseg); pnfs_layout_process()
1884 dprintk("%s: Writing ino:%lu %u@%llu (how %d)\n", __func__, pnfs_try_to_write_data()
2001 dprintk("%s: Reading ino:%lu %u@%llu\n", pnfs_try_to_read_data()
1359 pnfs_within_mdsthreshold(struct nfs_open_context *ctx, struct inode *ino, int iomode) pnfs_within_mdsthreshold() argument
H A Dcallback_proc.c119 struct inode *ino; get_layout_by_fh_locked() local
128 ino = igrab(lo->plh_inode); get_layout_by_fh_locked()
129 if (!ino) get_layout_by_fh_locked()
131 spin_lock(&ino->i_lock); get_layout_by_fh_locked()
133 if (NFS_I(ino)->layout != lo) { get_layout_by_fh_locked()
134 spin_unlock(&ino->i_lock); get_layout_by_fh_locked()
135 iput(ino); get_layout_by_fh_locked()
139 spin_unlock(&ino->i_lock); get_layout_by_fh_locked()
164 struct inode *ino; initiate_file_draining() local
173 ino = lo->plh_inode; initiate_file_draining()
175 spin_lock(&ino->i_lock); initiate_file_draining()
177 spin_unlock(&ino->i_lock); initiate_file_draining()
179 pnfs_layoutcommit_inode(ino, false); initiate_file_draining()
181 spin_lock(&ino->i_lock); initiate_file_draining()
189 if (NFS_SERVER(ino)->pnfs_curr_ld->return_range) { initiate_file_draining()
190 NFS_SERVER(ino)->pnfs_curr_ld->return_range(lo, initiate_file_draining()
194 spin_unlock(&ino->i_lock); initiate_file_draining()
197 iput(ino); initiate_file_draining()
H A Dpnfs.h265 bool pnfs_roc(struct inode *ino);
266 void pnfs_roc_release(struct inode *ino);
267 void pnfs_roc_set_barrier(struct inode *ino, u32 barrier);
268 bool pnfs_roc_drain(struct inode *ino, u32 *barrier, struct rpc_task *task);
279 struct pnfs_layout_segment *pnfs_update_layout(struct inode *ino,
512 static inline int pnfs_return_layout(struct inode *ino) pnfs_return_layout() argument
514 struct nfs_inode *nfsi = NFS_I(ino); pnfs_return_layout()
515 struct nfs_server *nfss = NFS_SERVER(ino); pnfs_return_layout()
518 return _pnfs_return_layout(ino); pnfs_return_layout()
563 static inline int pnfs_return_layout(struct inode *ino) pnfs_return_layout() argument
592 pnfs_roc(struct inode *ino) pnfs_roc() argument
598 pnfs_roc_release(struct inode *ino) pnfs_roc_release() argument
603 pnfs_roc_set_barrier(struct inode *ino, u32 barrier) pnfs_roc_set_barrier() argument
608 pnfs_roc_drain(struct inode *ino, u32 *barrier, struct rpc_task *task) pnfs_roc_drain() argument
/linux-4.1.27/fs/btrfs/
H A Dsend.c75 u64 ino; member in struct:clone_root
145 * |-- a (ino 257)
146 * |-- b (ino 258)
149 * |-- c (ino 259)
150 * | |-- d (ino 260)
152 * |-- c2 (ino 261)
157 * |-- a (ino 257)
158 * |-- b (ino 258)
159 * |-- c2 (ino 261)
160 * |-- d2 (ino 260)
161 * |-- cc (ino 259)
193 * . (ino 256)
194 * |-- a/ (ino 257)
195 * |-- b/ (ino 258)
196 * |-- c/ (ino 259)
197 * | |-- x/ (ino 260)
199 * |-- y/ (ino 261)
203 * . (ino 256)
204 * |-- a/ (ino 257)
205 * |-- b/ (ino 258)
206 * |-- YY/ (ino 261)
207 * |-- x/ (ino 260)
231 u64 ino; member in struct:pending_dir_move
239 u64 ino; member in struct:waiting_dir_move
243 * after this directory is moved, we can try to rmdir the ino rmdir_ino.
250 u64 ino; member in struct:orphan_dir_info
265 u64 ino; member in struct:name_cache_entry
275 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino);
278 get_waiting_dir_move(struct send_ctx *sctx, u64 ino);
786 u64 ino, u64 *size, u64 *gen, u64 *mode, u64 *uid, __get_inode_info()
793 key.objectid = ino; __get_inode_info()
822 u64 ino, u64 *size, u64 *gen, get_inode_info()
832 ret = __get_inode_info(root, path, ino, size, gen, mode, uid, gid, get_inode_info()
1102 u64 ino, struct fs_path *path) get_inode_path()
1114 key.objectid = ino; get_inode_path()
1126 if (found_key.objectid != ino || get_inode_path()
1191 * Results are collected in sctx->clone_roots->ino/offset/found_refs
1193 static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_) __iterate_backrefs() argument
1209 ino == bctx->cur_objectid && __iterate_backrefs()
1218 ret = __get_inode_info(found->root, bctx->path, ino, &i_size, NULL, NULL, __iterate_backrefs()
1238 if (ino >= bctx->cur_objectid) __iterate_backrefs()
1241 if (ino > bctx->cur_objectid) __iterate_backrefs()
1250 if (ino < found->ino) { __iterate_backrefs()
1251 found->ino = ino; __iterate_backrefs()
1253 } else if (found->ino == ino) { __iterate_backrefs()
1275 u64 ino, u64 data_offset, find_extent_clone()
1355 cur_clone_root->ino = (u64)-1; find_extent_clone()
1362 backref_ctx->cur_objectid = ino; find_extent_clone()
1395 ino, data_offset, disk_byte, found_key.objectid); find_extent_clone()
1400 "ino=%llu, " find_extent_clone()
1402 data_offset, ino, num_bytes, logical); find_extent_clone()
1443 u64 ino, read_symlink()
1459 key.objectid = ino; read_symlink()
1476 ino, root->root_key.objectid); read_symlink()
1503 u64 ino, u64 gen, gen_unique_name()
1519 ino, gen, idx); gen_unique_name()
1574 static int get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen) get_cur_inode_state() argument
1582 ret = get_inode_info(sctx->send_root, ino, NULL, &left_gen, NULL, NULL, get_cur_inode_state()
1591 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen, get_cur_inode_state()
1602 if (ino < sctx->send_progress) get_cur_inode_state()
1607 if (ino < sctx->send_progress) get_cur_inode_state()
1616 if (ino < sctx->send_progress) get_cur_inode_state()
1625 if (ino < sctx->send_progress) get_cur_inode_state()
1640 static int is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen) is_inode_existent() argument
1644 ret = get_cur_inode_state(sctx, ino, gen); is_inode_existent()
1700 * Looks up the first btrfs_inode_ref of a given ino. It returns the parent dir,
1703 static int get_first_ref(struct btrfs_root *root, u64 ino, get_first_ref() argument
1717 key.objectid = ino; get_first_ref()
1727 if (ret || found_key.objectid != ino || get_first_ref()
1771 u64 ino, u64 dir, is_first_ref()
1782 ret = get_first_ref(root, ino, &tmp_dir, NULL, tmp_name); is_first_ref()
1881 u64 ino, u64 ino_gen, did_overwrite_ref()
1912 if (ow_inode == ino && gen == ino_gen) { did_overwrite_ref()
1932 static int did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen) did_overwrite_first_ref() argument
1946 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); did_overwrite_first_ref()
1950 ret = did_overwrite_ref(sctx, dir, dir_gen, ino, gen, did_overwrite_first_ref()
1971 (unsigned long)nce->ino); name_cache_insert()
1980 ret = radix_tree_insert(&sctx->name_cache, nce->ino, nce_head); name_cache_insert()
2000 (unsigned long)nce->ino); name_cache_delete()
2003 "name_cache_delete lookup failed ino %llu cache size %d, leaking memory", name_cache_delete()
2004 nce->ino, sctx->name_cache_size); name_cache_delete()
2015 radix_tree_delete(&sctx->name_cache, (unsigned long)nce->ino); name_cache_delete()
2021 u64 ino, u64 gen) name_cache_search()
2026 nce_head = radix_tree_lookup(&sctx->name_cache, (unsigned long)ino); name_cache_search()
2031 if (cur->ino == ino && cur->gen == gen) list_for_each_entry()
2086 u64 ino, u64 gen, __get_cur_name_and_parent()
2097 * ino/gen. If yes, check if the cache entry is still up-to-date. If yes __get_cur_name_and_parent()
2100 nce = name_cache_search(sctx, ino, gen); __get_cur_name_and_parent()
2102 if (ino < sctx->send_progress && nce->need_later_update) { __get_cur_name_and_parent()
2123 ret = is_inode_existent(sctx, ino, gen); __get_cur_name_and_parent()
2128 ret = gen_unique_name(sctx, ino, gen, dest); __get_cur_name_and_parent()
2139 if (ino < sctx->send_progress) __get_cur_name_and_parent()
2140 ret = get_first_ref(sctx->send_root, ino, __get_cur_name_and_parent()
2143 ret = get_first_ref(sctx->parent_root, ino, __get_cur_name_and_parent()
2152 ret = did_overwrite_ref(sctx, *parent_ino, *parent_gen, ino, gen, __get_cur_name_and_parent()
2158 ret = gen_unique_name(sctx, ino, gen, dest); __get_cur_name_and_parent()
2174 nce->ino = ino; __get_cur_name_and_parent()
2182 if (ino < sctx->send_progress) __get_cur_name_and_parent()
2221 static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen, get_cur_path() argument
2239 while (!stop && ino != BTRFS_FIRST_FREE_OBJECTID) { get_cur_path()
2242 if (is_waiting_for_rm(sctx, ino)) { get_cur_path()
2243 ret = gen_unique_name(sctx, ino, gen, name); get_cur_path()
2250 if (is_waiting_for_move(sctx, ino)) { get_cur_path()
2251 ret = get_first_ref(sctx->parent_root, ino, get_cur_path()
2254 ret = __get_cur_name_and_parent(sctx, ino, gen, get_cur_path()
2268 ino = parent_inode; get_cur_path()
2360 static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size) send_truncate() argument
2365 verbose_printk("btrfs: send_truncate %llu size=%llu\n", ino, size); send_truncate()
2375 ret = get_cur_path(sctx, ino, gen, p); send_truncate()
2389 static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode) send_chmod() argument
2394 verbose_printk("btrfs: send_chmod %llu mode=%llu\n", ino, mode); send_chmod()
2404 ret = get_cur_path(sctx, ino, gen, p); send_chmod()
2418 static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid) send_chown() argument
2423 verbose_printk("btrfs: send_chown %llu uid=%llu, gid=%llu\n", ino, uid, gid); send_chown()
2433 ret = get_cur_path(sctx, ino, gen, p); send_chown()
2448 static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen) send_utimes() argument
2458 verbose_printk("btrfs: send_utimes %llu\n", ino); send_utimes()
2470 key.objectid = ino; send_utimes()
2485 ret = get_cur_path(sctx, ino, gen, p); send_utimes()
2508 static int send_create_inode(struct send_ctx *sctx, u64 ino) send_create_inode() argument
2517 verbose_printk("btrfs: send_create_inode %llu\n", ino); send_create_inode()
2523 if (ino != sctx->cur_ino) { send_create_inode()
2524 ret = get_inode_info(sctx->send_root, ino, NULL, &gen, &mode, send_create_inode()
2557 ret = gen_unique_name(sctx, ino, gen, p); send_create_inode()
2562 TLV_PUT_U64(sctx, BTRFS_SEND_A_INO, ino); send_create_inode()
2566 ret = read_symlink(sctx->send_root, ino, p); send_create_inode()
2763 static int orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen, orphanize_inode() argument
2773 ret = gen_unique_name(sctx, ino, gen, orphan); orphanize_inode()
2794 odi->ino = dir_ino; add_orphan_dir_info()
2800 if (dir_ino < entry->ino) { add_orphan_dir_info()
2802 } else if (dir_ino > entry->ino) { add_orphan_dir_info()
2823 if (dir_ino < entry->ino) get_orphan_dir_info()
2825 else if (dir_ino > entry->ino) get_orphan_dir_info()
2933 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino) is_waiting_for_move() argument
2935 struct waiting_dir_move *entry = get_waiting_dir_move(sctx, ino); is_waiting_for_move()
2940 static int add_waiting_dir_move(struct send_ctx *sctx, u64 ino) add_waiting_dir_move() argument
2949 dm->ino = ino; add_waiting_dir_move()
2955 if (ino < entry->ino) { add_waiting_dir_move()
2957 } else if (ino > entry->ino) { add_waiting_dir_move()
2971 get_waiting_dir_move(struct send_ctx *sctx, u64 ino) get_waiting_dir_move() argument
2978 if (ino < entry->ino) get_waiting_dir_move()
2980 else if (ino > entry->ino) get_waiting_dir_move()
2998 u64 ino, add_pending_dir_move()
3016 pm->ino = ino; add_pending_dir_move()
3047 ret = add_waiting_dir_move(sctx, pm->ino);
3103 dm = get_waiting_dir_move(sctx, pm->ino); apply_dir_move()
3109 ret = gen_unique_name(sctx, pm->ino, apply_dir_move()
3112 ret = get_first_ref(sctx->parent_root, pm->ino, apply_dir_move()
3129 ret = get_cur_path(sctx, pm->ino, pm->gen, to_path); apply_dir_move()
3166 ret = send_utimes(sctx, pm->ino, pm->gen); apply_dir_move()
3230 parent_ino = pm->ino; apply_children_dir_moves()
3259 * . (ino 256)
3260 * |---- a/ (ino 257)
3261 * | |---- file (ino 260)
3263 * |---- b/ (ino 258)
3264 * |---- c/ (ino 259)
3267 * . (ino 256)
3268 * |---- a/ (ino 258)
3269 * |---- x/ (ino 259)
3270 * |---- y/ (ino 257)
3271 * |----- file (ino 260)
3374 u64 ino = parent_ref->dir; wait_for_parent_move() local
3393 while (ino > BTRFS_FIRST_FREE_OBJECTID) { wait_for_parent_move()
3394 if (is_waiting_for_move(sctx, ino)) { wait_for_parent_move()
3402 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, wait_for_parent_move()
3406 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, wait_for_parent_move()
3417 if (ino > sctx->cur_ino && wait_for_parent_move()
3423 ino = parent_ino_after; wait_for_parent_move()
3434 ino, wait_for_parent_move()
4494 clone_root->root->objectid, clone_root->ino, send_clone()
4514 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, send_clone()
4518 ret = get_cur_path(sctx, clone_root->ino, gen, p); send_clone()
4520 ret = get_inode_path(clone_root->root, clone_root->ino, p); send_clone()
785 __get_inode_info(struct btrfs_root *root, struct btrfs_path *path, u64 ino, u64 *size, u64 *gen, u64 *mode, u64 *uid, u64 *gid, u64 *rdev) __get_inode_info() argument
821 get_inode_info(struct btrfs_root *root, u64 ino, u64 *size, u64 *gen, u64 *mode, u64 *uid, u64 *gid, u64 *rdev) get_inode_info() argument
1101 get_inode_path(struct btrfs_root *root, u64 ino, struct fs_path *path) get_inode_path() argument
1273 find_extent_clone(struct send_ctx *sctx, struct btrfs_path *path, u64 ino, u64 data_offset, u64 ino_size, struct clone_root **found) find_extent_clone() argument
1442 read_symlink(struct btrfs_root *root, u64 ino, struct fs_path *dest) read_symlink() argument
1502 gen_unique_name(struct send_ctx *sctx, u64 ino, u64 gen, struct fs_path *dest) gen_unique_name() argument
1770 is_first_ref(struct btrfs_root *root, u64 ino, u64 dir, const char *name, int name_len) is_first_ref() argument
1879 did_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, u64 ino, u64 ino_gen, const char *name, int name_len) did_overwrite_ref() argument
2020 name_cache_search(struct send_ctx *sctx, u64 ino, u64 gen) name_cache_search() argument
2085 __get_cur_name_and_parent(struct send_ctx *sctx, u64 ino, u64 gen, u64 *parent_ino, u64 *parent_gen, struct fs_path *dest) __get_cur_name_and_parent() argument
2997 add_pending_dir_move(struct send_ctx *sctx, u64 ino, u64 ino_gen, u64 parent_ino, struct list_head *new_refs, struct list_head *deleted_refs, const bool is_orphan) add_pending_dir_move() argument
H A Dexport.c234 u64 ino; btrfs_get_name() local
242 ino = btrfs_ino(inode); btrfs_get_name()
249 if (ino == BTRFS_FIRST_FREE_OBJECTID) { btrfs_get_name()
255 key.objectid = ino; btrfs_get_name()
265 if (ino == BTRFS_FIRST_FREE_OBJECTID) { btrfs_get_name()
274 if (ino == BTRFS_FIRST_FREE_OBJECTID) { btrfs_get_name()
H A Dbtrfs_inode.h230 u64 ino = BTRFS_I(inode)->location.objectid; btrfs_ino() local
233 * !ino: btree_inode btrfs_ino()
236 if (!ino || BTRFS_I(inode)->location.type == BTRFS_ROOT_ITEM_KEY) btrfs_ino()
237 ino = inode->i_ino; btrfs_ino()
238 return ino; btrfs_ino()
H A Dprops.c282 "error applying prop %s to ino %llu (root %llu): %d", inode_prop_iterator()
292 u64 ino = btrfs_ino(inode); btrfs_load_inode_props() local
295 ret = iterate_object_props(root, path, ino, inode_prop_iterator, inode); btrfs_load_inode_props()
H A Dtree-log.c1279 struct btrfs_root *root, u64 ino) insert_orphan_item()
1283 ret = btrfs_insert_orphan_item(trans, root, ino); insert_orphan_item()
1343 u64 ino = btrfs_ino(inode); count_inode_refs() local
1345 key.objectid = ino; count_inode_refs()
1361 if (key.objectid != ino || count_inode_refs()
1408 u64 ino = btrfs_ino(inode); fixup_inode_link_count() local
1437 ino, 1); fixup_inode_link_count()
1441 ret = insert_orphan_item(trans, root, ino); fixup_inode_link_count()
1586 const u64 dirid, const u64 ino) name_in_log_ref()
1590 search_key.objectid = ino; name_in_log_ref()
1966 const u64 ino) replay_xattr_deletes()
1978 search_key.objectid = ino; replay_xattr_deletes()
1995 if (key.objectid != ino || key.type != BTRFS_XATTR_ITEM_KEY) { replay_xattr_deletes()
2017 log_di = btrfs_lookup_xattr(NULL, log, log_path, ino, replay_xattr_deletes()
2023 di = btrfs_lookup_xattr(trans, root, path, ino, replay_xattr_deletes()
3147 u64 ino = btrfs_ino(inode); log_dir_items() local
3151 min_key.objectid = ino; log_dir_items()
3161 if (ret != 0 || min_key.objectid != ino || min_key.type != key_type) { log_dir_items()
3162 min_key.objectid = ino; log_dir_items()
3171 ret = btrfs_previous_item(root, path, ino, key_type); log_dir_items()
3189 ret = btrfs_previous_item(root, path, ino, key_type); log_dir_items()
3224 if (min_key.objectid != ino || min_key.type != key_type) log_dir_items()
3276 if (tmp.objectid != ino || tmp.type != key_type) { log_dir_items()
3302 ino, first_offset, last_offset); log_dir_items()
4143 const u64 ino = btrfs_ino(inode); btrfs_log_all_xattrs() local
4147 key.objectid = ino; btrfs_log_all_xattrs()
4182 if (key.objectid != ino || key.type != BTRFS_XATTR_ITEM_KEY) btrfs_log_all_xattrs()
4241 const u64 ino = btrfs_ino(inode); btrfs_log_trailing_hole() local
4247 key.objectid = ino; btrfs_log_trailing_hole()
4261 if (key.objectid != ino || key.type != BTRFS_EXTENT_DATA_KEY) { btrfs_log_trailing_hole()
4302 ret = btrfs_insert_file_extent(trans, log, ino, hole_start, 0, 0, btrfs_log_trailing_hole()
4463 u64 ino = btrfs_ino(inode); btrfs_log_inode() local
4477 min_key.objectid = ino; btrfs_log_inode()
4481 max_key.objectid = ino; btrfs_log_inode()
4525 ret = drop_objectid_items(trans, log, path, ino, max_key_type); btrfs_log_inode()
4550 ret = drop_objectid_items(trans, log, path, ino, btrfs_log_inode()
4570 ret = drop_objectid_items(trans, log, path, ino, btrfs_log_inode()
4592 if (min_key.objectid != ino) btrfs_log_inode()
4876 u64 ino; member in struct:btrfs_dir_list
4942 dir_elem->ino = btrfs_ino(start_inode); log_new_dir_dentries()
4956 min_key.objectid = dir_elem->ino; log_new_dir_dentries()
4981 if (min_key.objectid != dir_elem->ino || log_new_dir_dentries()
5022 new_dir_elem->ino = di_key.objectid; log_new_dir_dentries()
1278 insert_orphan_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 ino) insert_orphan_item() argument
1584 name_in_log_ref(struct btrfs_root *log_root, const char *name, const int name_len, const u64 dirid, const u64 ino) name_in_log_ref() argument
1962 replay_xattr_deletes(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_root *log, struct btrfs_path *path, const u64 ino) replay_xattr_deletes() argument
H A Dfile.c54 u64 ino; member in struct:inode_defrag
78 else if (defrag1->ino > defrag2->ino) __compare_inode_defrag()
80 else if (defrag1->ino < defrag2->ino) __compare_inode_defrag()
170 defrag->ino = btrfs_ino(inode); btrfs_add_inode_defrag()
224 btrfs_pick_defrag_inode(struct btrfs_fs_info *fs_info, u64 root, u64 ino) btrfs_pick_defrag_inode() argument
232 tmp.ino = ino; btrfs_pick_defrag_inode()
309 key.objectid = defrag->ino; __btrfs_run_defrag_inode()
391 first_ino = defrag->ino + 1; btrfs_run_defrag_inodes()
703 u64 ino = btrfs_ino(inode); __btrfs_drop_extents() local
729 ret = btrfs_lookup_file_extent(trans, root, path, ino, __btrfs_drop_extents()
736 if (key.objectid == ino && __btrfs_drop_extents()
760 if (key.objectid > ino) __btrfs_drop_extents()
762 if (WARN_ON_ONCE(key.objectid < ino) || __btrfs_drop_extents()
992 key.objectid = ino; __btrfs_drop_extents()
1093 u64 ino = btrfs_ino(inode); btrfs_mark_extent_written() local
1101 key.objectid = ino; btrfs_mark_extent_written()
1113 BUG_ON(key.objectid != ino || key.type != BTRFS_EXTENT_DATA_KEY); btrfs_mark_extent_written()
1130 ino, bytenr, orig_offset, btrfs_mark_extent_written()
1157 ino, bytenr, orig_offset, btrfs_mark_extent_written()
1215 ino, orig_offset, 1); btrfs_mark_extent_written()
1231 ino, bytenr, orig_offset, btrfs_mark_extent_written()
1242 ino, orig_offset, 0); btrfs_mark_extent_written()
1248 ino, bytenr, orig_offset, btrfs_mark_extent_written()
1259 ino, orig_offset, 0); btrfs_mark_extent_written()
/linux-4.1.27/fs/logfs/
H A Dinode.c81 static struct inode *__logfs_iget(struct super_block *sb, ino_t ino) __logfs_iget() argument
83 struct inode *inode = iget_locked(sb, ino); __logfs_iget()
109 struct inode *logfs_iget(struct super_block *sb, ino_t ino) logfs_iget() argument
111 BUG_ON(ino == LOGFS_INO_MASTER); logfs_iget()
112 BUG_ON(ino == LOGFS_INO_SEGFILE); logfs_iget()
113 return __logfs_iget(sb, ino); logfs_iget()
120 struct inode *logfs_safe_iget(struct super_block *sb, ino_t ino, int *is_cached) logfs_safe_iget() argument
125 if (ino == LOGFS_INO_MASTER) logfs_safe_iget()
127 if (ino == LOGFS_INO_SEGFILE) logfs_safe_iget()
132 if (li->vfs_inode.i_ino == ino) { logfs_safe_iget()
141 return __logfs_iget(sb, ino); logfs_safe_iget()
262 struct inode *logfs_new_meta_inode(struct super_block *sb, u64 ino) logfs_new_meta_inode() argument
271 inode->i_ino = ino; logfs_new_meta_inode()
278 struct inode *logfs_read_meta_inode(struct super_block *sb, u64 ino) logfs_read_meta_inode() argument
283 inode = logfs_new_meta_inode(sb, ino); logfs_read_meta_inode()
326 u64 ino; logfs_set_ino_generation() local
329 ino = logfs_seek_hole(super->s_master_inode, super->s_last_ino + 1); logfs_set_ino_generation()
330 super->s_last_ino = ino; logfs_set_ino_generation()
337 inode->i_ino = ino; logfs_set_ino_generation()
H A Ddir.c227 ta->ino = inode->i_ino; logfs_unlink()
317 be64_to_cpu(dd->ino), dd->type); logfs_readdir()
338 u64 ino = 0; logfs_lookup() local
350 ino = be64_to_cpu(dd->ino); logfs_lookup()
354 inode = logfs_iget(dir->i_sb, ino); logfs_lookup()
357 ino, dir->i_ino, index); logfs_lookup()
388 dd->ino = cpu_to_be64(inode->i_ino); logfs_write_dir()
423 ta->ino = inode->i_ino; __logfs_create()
642 dd->ino = cpu_to_be64(inode->i_ino); logfs_replace_inode()
649 dd->name, be64_to_cpu(dd->ino)); logfs_replace_inode()
687 ta->ino = new_inode->i_ino; logfs_rename_target()
733 u64 ino, pos; logfs_replay_journal() local
738 ino = super->s_victim_ino; logfs_replay_journal()
739 printk(KERN_INFO"LogFS: delete unmapped inode #%llx\n", ino); logfs_replay_journal()
740 inode = logfs_iget(sb, ino); logfs_replay_journal()
749 super->s_victim_ino = ino; logfs_replay_journal()
755 ino = super->s_rename_dir; logfs_replay_journal()
758 ino, pos); logfs_replay_journal()
759 inode = logfs_iget(sb, ino); logfs_replay_journal()
768 super->s_rename_dir = ino; logfs_replay_journal()
H A Dsegment.c167 static void *alias_tree_lookup(struct super_block *sb, u64 ino, u64 bix, alias_tree_lookup() argument
173 return btree_lookup128(head, ino, index); alias_tree_lookup()
176 static int alias_tree_insert(struct super_block *sb, u64 ino, u64 bix, alias_tree_insert() argument
182 return btree_insert128(head, ino, index, val, GFP_NOFS); alias_tree_insert()
192 err = write_alias_journal(sb, block->ino, block->bix, btree_write_alias()
212 u64 ino, bix; logfs_load_object_aliases() local
228 ino = be64_to_cpu(oa[i].ino); logfs_load_object_aliases()
233 ino, bix, level, item->child_no, logfs_load_object_aliases()
235 block = alias_tree_lookup(sb, ino, bix, level); logfs_load_object_aliases()
237 block = __alloc_block(sb, ino, bix, level); logfs_load_object_aliases()
239 err = alias_tree_insert(sb, ino, bix, level, block); logfs_load_object_aliases()
321 h.ino = cpu_to_be64(inode->i_ino); __logfs_segment_write()
392 shadow->ino, shadow->bix, shadow->gc_level, logfs_segment_write()
492 block->ino, block->bix, block->level); move_btree_to_page()
535 block->ino, block->bix, block->level); move_page_to_btree()
561 err = alias_tree_insert(block->sb, block->ino, block->bix, block->level, move_page_to_btree()
583 if (be64_to_cpu(oh.ino) != inode->i_ino __logfs_segment_read()
585 printk(KERN_ERR"LOGFS: (ino, bix) don't match at %llx: " __logfs_segment_read()
588 be64_to_cpu(oh.ino), be64_to_cpu(oh.bix)); __logfs_segment_read()
694 shadow->ino, shadow->bix, shadow->gc_level, logfs_segment_delete()
699 LOGFS_BUG_ON(be64_to_cpu(h.ino) != inode->i_ino, sb); logfs_segment_delete()
H A Dlogfs.h228 * @ino: target inode
234 u64 ino; member in struct:logfs_transaction
243 * @ino: inode number
252 u64 ino; member in struct:logfs_shadow
298 u64 ino; member in struct:logfs_block
311 typedef int write_alias_t(struct super_block *sb, u64 ino, u64 bix,
349 u64 s_rename_dir; /* source directory ino */
377 u64 s_last_ino; /* highest ino used */
520 struct inode *logfs_iget(struct super_block *sb, ino_t ino);
521 struct inode *logfs_safe_iget(struct super_block *sb, ino_t ino, int *cookie);
524 struct inode *logfs_new_meta_inode(struct super_block *sb, u64 ino);
525 struct inode *logfs_read_meta_inode(struct super_block *sb, u64 ino);
538 int write_alias_journal(struct super_block *sb, u64 ino, u64 bix,
553 int logfs_is_valid_block(struct super_block *sb, u64 ofs, u64 ino, u64 bix,
573 u64 ino, u64 bix, level_t level);
702 static inline gc_level_t expand_level(u64 ino, level_t __level) expand_level() argument
706 if (ino == LOGFS_INO_MASTER) { expand_level()
H A Dreadwrite.c467 u64 ino , bix; inode_write_alias() local
494 ino = LOGFS_INO_MASTER; inode_write_alias()
497 err = write_one_alias(sb, ino, bix, level, pos, val); inode_write_alias()
508 u64 ino , bix; indirect_write_alias() local
518 ino = page->mapping->host->i_ino; indirect_write_alias()
523 err = write_one_alias(sb, ino, bix, level, pos, val); indirect_write_alias()
585 u64 ino, u64 bix, level_t level) __alloc_block()
595 block->ino = ino; __alloc_block()
1024 * @ino: block inode number
1031 int logfs_is_valid_block(struct super_block *sb, u64 ofs, u64 ino, u64 bix, logfs_is_valid_block() argument
1040 if (ino == -1) logfs_is_valid_block()
1043 LOGFS_BUG_ON((u64)(u_long)ino != ino, sb); logfs_is_valid_block()
1045 inode = logfs_safe_iget(sb, ino, &cookie); logfs_is_valid_block()
1154 super->s_victim_ino = ta->ino; logfs_handle_transaction()
1158 BUG_ON(super->s_victim_ino != ta->ino); logfs_handle_transaction()
1182 super->s_victim_ino = ta->ino; logfs_handle_transaction()
1187 BUG_ON(super->s_victim_ino != ta->ino); logfs_handle_transaction()
1194 BUG_ON(super->s_victim_ino != ta->ino); logfs_handle_transaction()
1225 shadow->ino = inode->i_ino; alloc_shadow()
1913 block->ino, block->bix, block->level); move_page_to_inode()
1936 block->ino, block->bix, block->level); move_inode_to_page()
1958 u64 ino = inode->i_ino; logfs_read_inode() local
1960 if (ino << sb->s_blocksize_bits > i_size_read(master_inode)) logfs_read_inode()
1962 if (!logfs_exist_block(master_inode, ino)) logfs_read_inode()
1965 page = read_cache_page(master_inode->i_mapping, ino, logfs_read_inode()
2209 inode = logfs_safe_iget(block->sb, block->ino, &cookie); btree_write_block()
584 __alloc_block(struct super_block *sb, u64 ino, u64 bix, level_t level) __alloc_block() argument
H A Dgc.c113 static void logfs_cleanse_block(struct super_block *sb, u64 ofs, u64 ino, logfs_cleanse_block() argument
119 inode = logfs_safe_iget(sb, ino, &cookie); logfs_cleanse_block()
130 u64 ofs, ino, bix; logfs_gc_segment() local
164 ino = be64_to_cpu(oh.ino); logfs_gc_segment()
167 valid = logfs_is_valid_block(sb, ofs, ino, bix, gc_level); logfs_gc_segment()
169 logfs_cleanse_block(sb, ofs, ino, bix, gc_level); logfs_gc_segment()
H A Dlogfs_abi.h280 * @ino: inode number
289 __be64 ino; member in struct:logfs_object_header
381 * @ino: inode number
388 __be64 ino; member in struct:logfs_disk_dentry
481 * @ds_rename_dir: source directory ino (see dir.c documentation)
575 __be64 ino; member in struct:logfs_obj_alias
/linux-4.1.27/fs/
H A Dreaddir.c78 loff_t offset, u64 ino, unsigned int d_type) fillonedir()
87 d_ino = ino; fillonedir()
88 if (sizeof(d_ino) < sizeof(ino) && d_ino != ino) { fillonedir()
153 loff_t offset, u64 ino, unsigned int d_type) filldir()
165 d_ino = ino; filldir()
166 if (sizeof(d_ino) < sizeof(ino) && d_ino != ino) { filldir()
238 loff_t offset, u64 ino, unsigned int d_type) filldir64()
255 if (__put_user(ino, &dirent->d_ino)) filldir64()
77 fillonedir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) fillonedir() argument
152 filldir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) filldir() argument
237 filldir64(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) filldir64() argument
H A Dstat.c24 stat->ino = inode->i_ino; generic_fillattr()
156 tmp.st_ino = stat->ino; cp_old_stat()
157 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) cp_old_stat()
242 tmp.st_ino = stat->ino; cp_new_stat()
243 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) cp_new_stat()
378 tmp.st_ino = stat->ino; cp_new_stat64()
379 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) cp_new_stat64()
382 tmp.__st_ino = stat->ino; cp_new_stat64()
H A Dinode.c788 struct hlist_head *head, unsigned long ino) find_inode_fast()
794 if (inode->i_ino != ino) hlist_for_each_entry()
1053 * @ino: inode number to get
1055 * Search for the inode specified by @ino in the inode cache and if present
1063 struct inode *iget_locked(struct super_block *sb, unsigned long ino) iget_locked() argument
1065 struct hlist_head *head = inode_hashtable + hash(sb, ino); iget_locked()
1069 inode = find_inode_fast(sb, head, ino); iget_locked()
1082 old = find_inode_fast(sb, head, ino); iget_locked()
1084 inode->i_ino = ino; iget_locked()
1119 static int test_inode_iunique(struct super_block *sb, unsigned long ino) test_inode_iunique() argument
1121 struct hlist_head *b = inode_hashtable + hash(sb, ino); test_inode_iunique()
1126 if (inode->i_ino == ino && inode->i_sb == sb) { hlist_for_each_entry()
1253 * @ino: inode number to search for
1255 * Search for the inode @ino in the inode cache, and if the inode is in the
1258 struct inode *ilookup(struct super_block *sb, unsigned long ino) ilookup() argument
1260 struct hlist_head *head = inode_hashtable + hash(sb, ino); ilookup()
1264 inode = find_inode_fast(sb, head, ino); ilookup()
1326 ino_t ino = inode->i_ino; insert_inode_locked() local
1327 struct hlist_head *head = inode_hashtable + hash(sb, ino); insert_inode_locked()
1333 if (old->i_ino != ino) hlist_for_each_entry()
787 find_inode_fast(struct super_block *sb, struct hlist_head *head, unsigned long ino) find_inode_fast() argument
H A Dcompat.c138 tmp.st_ino = stat->ino; cp_compat_stat()
139 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) cp_compat_stat()
851 int namlen, loff_t offset, u64 ino, compat_fillonedir()
861 d_ino = ino; compat_fillonedir()
862 if (sizeof(d_ino) < sizeof(ino) && d_ino != ino) { compat_fillonedir()
921 loff_t offset, u64 ino, unsigned int d_type) compat_filldir()
933 d_ino = ino; compat_filldir()
934 if (sizeof(d_ino) < sizeof(ino) && d_ino != ino) { compat_filldir()
1008 int namlen, loff_t offset, u64 ino, compat_filldir64()
1028 if (__put_user_unaligned(ino, &dirent->d_ino)) compat_filldir64()
850 compat_fillonedir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) compat_fillonedir() argument
920 compat_filldir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) compat_filldir() argument
1007 compat_filldir64(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) compat_filldir64() argument
/linux-4.1.27/fs/hpfs/
H A Dmap.c137 struct fnode *hpfs_map_fnode(struct super_block *s, ino_t ino, struct buffer_head **bhp) hpfs_map_fnode() argument
140 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, ino, 1, "fnode")) { hpfs_map_fnode()
143 if ((fnode = hpfs_map_sector(s, ino, bhp, FNODE_RD_AHEAD))) { hpfs_map_fnode()
149 (unsigned long)ino); hpfs_map_fnode()
157 (unsigned long)ino); hpfs_map_fnode()
164 (unsigned long)ino); hpfs_map_fnode()
172 (unsigned long)ino, hpfs_map_fnode()
181 (unsigned long)ino); hpfs_map_fnode()
295 dnode_secno hpfs_fnode_dno(struct super_block *s, ino_t ino) hpfs_fnode_dno() argument
301 fnode = hpfs_map_fnode(s, ino, &bh); hpfs_fnode_dno()
H A Ddir.c186 * the inode of a directory or a file -- file ino's are odd, directory
187 * ino's are even. read_inode avoids i/o for file inodes; everything
202 ino_t ino; hpfs_lookup() local
232 ino = le32_to_cpu(de->fnode); hpfs_lookup()
238 result = iget_locked(dir->i_sb, ino); hpfs_lookup()
/linux-4.1.27/fs/f2fs/
H A Dnode.h46 nid_t ino; /* inode number of the node's owner */ member in struct:node_info
61 #define nat_get_ino(nat) (nat->ni.ino)
62 #define nat_set_ino(nat, i) (nat->ni.ino = i)
72 dst->ino = src->ino; copy_node_info()
105 ni->ino = le32_to_cpu(raw_ne->ino); node_info_from_raw_nat()
113 raw_ne->ino = cpu_to_le32(ni->ino); raw_nat_from_node_info()
214 nid_t ino, unsigned int ofs, bool reset) fill_node_footer()
225 rn->footer.ino = cpu_to_le32(ino); fill_node_footer()
251 return le32_to_cpu(rn->footer.ino); ino_of_node()
213 fill_node_footer(struct page *page, nid_t nid, nid_t ino, unsigned int ofs, bool reset) fill_node_footer() argument
H A Drecovery.c59 nid_t ino) get_fsync_inode()
64 if (entry->inode->i_ino == ino) get_fsync_inode()
96 if (de && inode->i_ino == le32_to_cpu(de->ino)) recover_dentry()
100 einode = f2fs_iget(inode->i_sb, le32_to_cpu(de->ino)); recover_dentry()
137 "%s: ino = %x, name = %s, dir = %lx, err = %d", recover_dentry()
156 f2fs_msg(inode->i_sb, KERN_NOTICE, "recover_inode: ino = %x, name = %s", recover_inode()
257 nid_t ino, nid; check_index_in_prev_nodes() local
301 ino = ino_of_node(node_page); check_index_in_prev_nodes()
304 if (ino != dn->inode->i_ino) { check_index_in_prev_nodes()
306 inode = f2fs_iget(sbi->sb, ino); check_index_in_prev_nodes()
320 if (ino == dn->inode->i_ino && dn->inode_page_locked) check_index_in_prev_nodes()
332 if (ino != dn->inode->i_ino) check_index_in_prev_nodes()
389 f2fs_bug_on(sbi, ni.ino != ino_of_node(page)); do_recover_data()
428 fill_node_footer(dn.node_page, dn.nid, ni.ino, do_recover_data()
436 "recover_data: ino = %lx, recovered = %d blocks, err = %d", do_recover_data()
58 get_fsync_inode(struct list_head *head, nid_t ino) get_fsync_inode() argument
H A Dcheckpoint.c320 static void __add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type) __add_ino_entry() argument
332 e = radix_tree_lookup(&im->ino_root, ino); __add_ino_entry()
340 if (radix_tree_insert(&im->ino_root, ino, e)) { __add_ino_entry()
347 e->ino = ino; __add_ino_entry()
357 static void __remove_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type) __remove_ino_entry() argument
363 e = radix_tree_lookup(&im->ino_root, ino); __remove_ino_entry()
366 radix_tree_delete(&im->ino_root, ino); __remove_ino_entry()
375 void add_dirty_inode(struct f2fs_sb_info *sbi, nid_t ino, int type) add_dirty_inode() argument
377 /* add new dirty ino entry into list */ add_dirty_inode()
378 __add_ino_entry(sbi, ino, type); add_dirty_inode()
381 void remove_dirty_inode(struct f2fs_sb_info *sbi, nid_t ino, int type) remove_dirty_inode() argument
383 /* remove dirty ino entry from list */ remove_dirty_inode()
384 __remove_ino_entry(sbi, ino, type); remove_dirty_inode()
388 bool exist_written_data(struct f2fs_sb_info *sbi, nid_t ino, int mode) exist_written_data() argument
394 e = radix_tree_lookup(&im->ino_root, ino); exist_written_data()
410 radix_tree_delete(&im->ino_root, e->ino); release_dirty_inode()
443 void add_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino) add_orphan_inode() argument
445 /* add new orphan ino entry into list */ add_orphan_inode()
446 __add_ino_entry(sbi, ino, ORPHAN_INO); add_orphan_inode()
449 void remove_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino) remove_orphan_inode() argument
452 __remove_ino_entry(sbi, ino, ORPHAN_INO); remove_orphan_inode()
455 static void recover_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino) recover_orphan_inode() argument
457 struct inode *inode = f2fs_iget(sbi->sb, ino); recover_orphan_inode()
485 nid_t ino = le32_to_cpu(orphan_blk->ino[j]); recover_orphan_inodes() local
486 recover_orphan_inode(sbi, ino); recover_orphan_inodes()
527 orphan_blk->ino[nentries++] = cpu_to_le32(orphan->ino); list_for_each_entry()
H A Dnode.c212 bool has_fsynced_inode(struct f2fs_sb_info *sbi, nid_t ino) has_fsynced_inode() argument
219 e = __lookup_nat_cache(nm_i, ino); has_fsynced_inode()
226 bool need_inode_block_update(struct f2fs_sb_info *sbi, nid_t ino) need_inode_block_update() argument
233 e = __lookup_nat_cache(nm_i, ino); need_inode_block_update()
315 e = __lookup_nat_cache(nm_i, ni->ino); set_node_addr()
317 if (fsync_done && ni->nid == ni->ino) set_node_addr()
364 ni->ino = nat_get_ino(e); get_node_info()
959 new_ni.ino = dn->inode->i_ino; new_node_page()
1139 int sync_node_pages(struct f2fs_sb_info *sbi, nid_t ino, sync_node_pages() argument
1144 int step = ino ? 2 : 0; sync_node_pages()
1183 if (ino && ino_of_node(page) == ino) sync_node_pages()
1193 if (ino && ino_of_node(page) != ino) sync_node_pages()
1205 if (ino && IS_DNODE(page)) { sync_node_pages()
1208 if (!is_checkpointed_node(sbi, ino) && sync_node_pages()
1209 !has_fsynced_inode(sbi, ino)) sync_node_pages()
1247 int wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, nid_t ino) wait_on_node_pages_writeback() argument
1270 if (ino && ino_of_node(page) == ino) { wait_on_node_pages_writeback()
1553 * The returned nid could be used ino as well as nid when inode is created.
1685 ni.ino = inode->i_ino; recover_xattr_data()
1699 nid_t ino = ino_of_node(page); recover_inode_page() local
1703 get_node_info(sbi, ino, &old_ni); recover_inode_page()
1708 ipage = grab_cache_page(NODE_MAPPING(sbi), ino); recover_inode_page()
1713 remove_free_nid(NM_I(sbi), ino); recover_inode_page()
1716 fill_node_footer(ipage, ino, ino, 0, true); recover_inode_page()
1729 new_ni.ino = ino; recover_inode_page()
H A Dinode.c105 /* Check if ino is within scope */ do_read_inode()
164 struct inode *f2fs_iget(struct super_block *sb, unsigned long ino) f2fs_iget() argument
170 inode = iget_locked(sb, ino); f2fs_iget()
178 if (ino == F2FS_NODE_INO(sbi) || ino == F2FS_META_INO(sbi)) f2fs_iget()
185 if (ino == F2FS_NODE_INO(sbi)) { f2fs_iget()
188 } else if (ino == F2FS_META_INO(sbi)) { f2fs_iget()
H A Dnamei.c28 nid_t ino; f2fs_new_inode() local
38 if (!alloc_nid(sbi, &ino)) { f2fs_new_inode()
47 inode->i_ino = ino; f2fs_new_inode()
76 alloc_nid_failed(sbi, ino); f2fs_new_inode()
114 nid_t ino = 0; f2fs_create() local
129 ino = inode->i_ino; f2fs_create()
137 alloc_nid_done(sbi, ino); f2fs_create()
185 unsigned long ino = f2fs_inode_by_name(d_inode(child), &dotdot); f2fs_get_parent() local
186 if (!ino) f2fs_get_parent()
188 return d_obtain_alias(f2fs_iget(d_inode(child)->i_sb, ino)); f2fs_get_parent()
241 nid_t ino = le32_to_cpu(de->ino); f2fs_lookup() local
245 inode = f2fs_iget(dir->i_sb, ino); f2fs_lookup()
H A Ddir.c269 res = le32_to_cpu(de->ino); f2fs_inode_by_name()
283 de->ino = cpu_to_le32(inode->i_ino); f2fs_set_link()
328 de->ino = cpu_to_le32(inode->i_ino); do_make_empty_dir()
335 de->ino = cpu_to_le32(parent->i_ino); do_make_empty_dir()
473 void f2fs_update_dentry(nid_t ino, umode_t mode, struct f2fs_dentry_ptr *d, f2fs_update_dentry() argument
485 de->ino = cpu_to_le32(ino); f2fs_update_dentry()
496 struct inode *inode, nid_t ino, umode_t mode) __f2fs_add_link()
513 err = f2fs_add_inline_entry(dir, name, inode, ino, mode); __f2fs_add_link()
573 f2fs_update_dentry(ino, mode, &d, name, dentry_hash, bit_pos); __f2fs_add_link()
752 le32_to_cpu(de->ino), d_type)) f2fs_fill_dentries()
495 __f2fs_add_link(struct inode *dir, const struct qstr *name, struct inode *inode, nid_t ino, umode_t mode) __f2fs_add_link() argument
H A Dfile.c141 static bool need_inode_page_update(struct f2fs_sb_info *sbi, nid_t ino) need_inode_page_update() argument
143 struct page *i = find_get_page(NODE_MAPPING(sbi), ino); need_inode_page_update()
146 if ((i && PageDirty(i)) || need_inode_block_update(sbi, ino)) need_inode_page_update()
177 nid_t ino = inode->i_ino; f2fs_sync_file() local
212 !exist_written_data(sbi, ino, APPEND_INO)) { f2fs_sync_file()
215 if (need_inode_page_update(sbi, ino)) f2fs_sync_file()
219 exist_written_data(sbi, ino, UPDATE_INO)) f2fs_sync_file()
249 sync_node_pages(sbi, ino, &wbc); f2fs_sync_file()
255 if (need_inode_block_update(sbi, ino)) { f2fs_sync_file()
261 ret = wait_on_node_pages_writeback(sbi, ino); f2fs_sync_file()
266 remove_dirty_inode(sbi, ino, APPEND_INO); f2fs_sync_file()
269 remove_dirty_inode(sbi, ino, UPDATE_INO); f2fs_sync_file()
H A Dgc.c339 static struct inode *find_gc_inode(struct gc_inode_list *gc_list, nid_t ino) find_gc_inode() argument
343 ie = radix_tree_lookup(&gc_list->iroot, ino); find_gc_inode()
586 /* Get an inode by ino with checking validity */ gc_data_segment()
591 ra_node_page(sbi, dni.ino); gc_data_segment()
598 inode = f2fs_iget(sb, dni.ino); gc_data_segment()
617 inode = find_gc_inode(gc_list, dni.ino); gc_data_segment()
H A Ddata.c396 nid_t ino) __find_extent_tree()
401 et = radix_tree_lookup(&sbi->extent_tree_root, ino); __find_extent_tree()
416 nid_t ino = inode->i_ino; __grab_extent_tree() local
419 et = radix_tree_lookup(&sbi->extent_tree_root, ino); __grab_extent_tree()
422 f2fs_radix_tree_insert(&sbi->extent_tree_root, ino, et); __grab_extent_tree()
424 et->ino = ino; __grab_extent_tree()
773 unsigned long ino = F2FS_ROOT_INO(sbi); f2fs_shrink_extent_tree() local
795 (void **)treevec, ino, EXT_TREE_VEC_SIZE))) { f2fs_shrink_extent_tree()
798 ino = treevec[found - 1]->ino + 1; f2fs_shrink_extent_tree()
817 radix_tree_delete(&sbi->extent_tree_root, et->ino); f2fs_shrink_extent_tree()
395 __find_extent_tree(struct f2fs_sb_info *sbi, nid_t ino) __find_extent_tree() argument
/linux-4.1.27/fs/proc/
H A Dproc_net.c39 int seq_open_net(struct inode *ino, struct file *f, seq_open_net() argument
47 net = get_proc_net(ino); seq_open_net()
87 int seq_release_net(struct inode *ino, struct file *f) seq_release_net() argument
94 seq_release_private(ino, f); seq_release_net()
99 int single_release_net(struct inode *ino, struct file *f) single_release_net() argument
103 return single_release(ino, f); single_release_net()
H A Dnommu.c39 unsigned long ino = 0; nommu_region_show() local
50 ino = inode->i_ino; nommu_region_show()
63 MAJOR(dev), MINOR(dev), ino); nommu_region_show()
H A Dtask_nommu.c153 unsigned long ino = 0; nommu_vma_show() local
165 ino = inode->i_ino; nommu_vma_show()
179 MAJOR(dev), MINOR(dev), ino); nommu_vma_show()
/linux-4.1.27/fs/ext4/
H A Dialloc.c232 unsigned long ino; ext4_free_inode() local
261 ino = inode->i_ino; ext4_free_inode()
262 ext4_debug("freeing inode %lu\n", ino); ext4_free_inode()
280 if (ino < EXT4_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { ext4_free_inode()
281 ext4_error(sb, "reserved or nonexistent inode %lu", ino); ext4_free_inode()
284 block_group = (ino - 1) / EXT4_INODES_PER_GROUP(sb); ext4_free_inode()
285 bit = (ino - 1) % EXT4_INODES_PER_GROUP(sb); ext4_free_inode()
339 ext4_error(sb, "bit already cleared for inode %lu", ino); ext4_free_inode()
664 static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino) recently_deleted() argument
678 (ino / inodes_per_block)); recently_deleted()
686 offset = (ino % inodes_per_block) * EXT4_INODE_SIZE(sb); recently_deleted()
719 unsigned long ino = 0; __ext4_new_inode() local
765 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); __ext4_new_inode()
786 for (i = 0; i < ngroups; i++, ino = 0) { __ext4_new_inode()
820 ino = ext4_find_next_zero_bit((unsigned long *) __ext4_new_inode()
822 EXT4_INODES_PER_GROUP(sb), ino); __ext4_new_inode()
823 if (ino >= EXT4_INODES_PER_GROUP(sb)) __ext4_new_inode()
825 if (group == 0 && (ino+1) < EXT4_FIRST_INO(sb)) { __ext4_new_inode()
827 "inode=%lu", ino + 1); __ext4_new_inode()
831 recently_deleted(sb, group, ino)) { __ext4_new_inode()
832 ino++; __ext4_new_inode()
853 ret2 = ext4_test_and_set_bit(ino, inode_bitmap_bh->b_data); __ext4_new_inode()
855 ino++; /* the inode bitmap is zero-based */ __ext4_new_inode()
859 if (ino < EXT4_INODES_PER_GROUP(sb)) __ext4_new_inode()
941 if (ino > free) __ext4_new_inode()
943 (EXT4_INODES_PER_GROUP(sb) - ino)); __ext4_new_inode()
981 inode->i_ino = ino + group * EXT4_INODES_PER_GROUP(sb); __ext4_new_inode()
1110 struct inode *ext4_orphan_get(struct super_block *sb, unsigned long ino) ext4_orphan_get() argument
1119 if (ino < EXT4_FIRST_INO(sb) || ino > max_ino) ext4_orphan_get()
1122 block_group = (ino - 1) / EXT4_INODES_PER_GROUP(sb); ext4_orphan_get()
1123 bit = (ino - 1) % EXT4_INODES_PER_GROUP(sb); ext4_orphan_get()
1127 ino, PTR_ERR(bitmap_bh)); ext4_orphan_get()
1138 inode = ext4_iget(sb, ino); ext4_orphan_get()
1142 ino, err); ext4_orphan_get()
1162 ext4_error(sb, "bad orphan inode %lu", ino); ext4_orphan_get()
H A Dmove_extent.c474 " to donor file [ino:orig %lu, donor %lu]\n", mext_check_arguments()
485 "not be swapfile [ino:orig %lu, donor %lu]\n", mext_check_arguments()
492 "not be quota files [ino:orig %lu, donor %lu]\n", mext_check_arguments()
500 "based file [ino:orig %lu]\n", orig_inode->i_ino); mext_check_arguments()
504 "based file [ino:donor %lu]\n", donor_inode->i_ino); mext_check_arguments()
517 "offset are not alligned [ino:orig %lu, donor %lu]\n", mext_check_arguments()
528 "[ino:orig %lu, donor %lu]\n", EXT_MAX_BLOCKS, mext_check_arguments()
538 "[ino:orig %lu, donor %lu]\n", orig_inode->i_ino, mext_check_arguments()
574 "should be in same FS [ino:orig %lu, donor %lu]\n", ext4_move_extents()
582 "be same inode [ino:orig %lu, donor %lu]\n", ext4_move_extents()
590 "regular file [ino:orig %lu, donor %lu]\n", ext4_move_extents()
/linux-4.1.27/include/linux/
H A Dstat.h22 u64 ino; member in struct:kstat
H A Dexportfs.h108 u32 ino; member in struct:fid::__anon11658::__anon11659
232 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
235 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
/linux-4.1.27/fs/jfs/
H A Dnamei.c81 ino_t ino; jfs_create() local
124 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { jfs_create()
132 tblk->ino = ip->i_ino; jfs_create()
147 ino = ip->i_ino; jfs_create()
148 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { jfs_create()
213 ino_t ino; jfs_mkdir() local
256 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { jfs_mkdir()
264 tblk->ino = ip->i_ino; jfs_mkdir()
279 ino = ip->i_ino; jfs_mkdir()
280 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { jfs_mkdir()
350 ino_t ino; jfs_rmdir() local
386 ino = ip->i_ino; jfs_rmdir()
387 if ((rc = dtDelete(tid, dip, &dname, &ino, JFS_REMOVE))) { jfs_rmdir()
476 ino_t ino; jfs_unlink() local
505 ino = ip->i_ino; jfs_unlink()
506 if ((rc = dtDelete(tid, dip, &dname, &ino, JFS_REMOVE))) { jfs_unlink()
795 ino_t ino; jfs_link() local
815 if ((rc = dtSearch(dir, &dname, &ino, &btstack, JFS_CREATE))) jfs_link()
821 ino = ip->i_ino; jfs_link()
822 if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) jfs_link()
878 ino_t ino = 0; jfs_symlink() local
928 tblk->ino = ip->i_ino; jfs_symlink()
1010 rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE); jfs_symlink()
1012 ino = ip->i_ino; jfs_symlink()
1013 rc = dtInsert(tid, dip, &dname, &ino, &btstack); jfs_symlink()
1067 ino_t ino; jfs_rename() local
1101 rc = dtSearch(old_dir, &old_dname, &ino, &btstack, JFS_LOOKUP); jfs_rename()
1102 if (rc || (ino != old_ip->i_ino)) { jfs_rename()
1110 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP); jfs_rename()
1112 if ((!new_ip) || (ino != new_ip->i_ino)) { jfs_rename()
1160 ino = new_ip->i_ino; jfs_rename()
1161 rc = dtModify(tid, new_dir, &new_dname, &ino, jfs_rename()
1202 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, jfs_rename()
1210 ino = old_ip->i_ino; jfs_rename()
1211 rc = dtInsert(tid, new_dir, &new_dname, &ino, &btstack); jfs_rename()
1224 ino = old_ip->i_ino; jfs_rename()
1225 rc = dtDelete(tid, old_dir, &old_dname, &ino, JFS_REMOVE); jfs_rename()
1346 ino_t ino; jfs_mknod() local
1385 if ((rc = dtSearch(dir, &dname, &ino, &btstack, JFS_CREATE))) { jfs_mknod()
1392 tblk->ino = ip->i_ino; jfs_mknod()
1395 ino = ip->i_ino; jfs_mknod()
1396 if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) { jfs_mknod()
1466 u64 ino, u32 generation) jfs_nfs_get_inode()
1470 if (ino == 0) jfs_nfs_get_inode()
1472 inode = jfs_iget(sb, ino); jfs_nfs_get_inode()
1465 jfs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) jfs_nfs_get_inode() argument
H A Djfs_imap.h40 #define INOTOIAG(ino) ((ino) >> L2INOSPERIAG)
46 * that contains ino.
48 #define INOPBLK(pxd,ino,l2nbperpg) (addressPXD((pxd)) + \
49 ((((ino) & (INOSPEREXT-1)) >> L2INOSPERPAGE) << (l2nbperpg)))
H A Djfs_imap.c307 int iagno, ino, extno, rc; diRead() local
319 jfs_info("diRead: ino = %ld", ip->i_ino); diRead()
340 ino = ip->i_ino & (INOSPERIAG - 1); diRead()
341 extno = ino >> L2INOSPEREXT; diRead()
352 blkno = INOPBLK(&iagp->inoext[extno], ino, sbi->l2nbperpage); diRead()
359 rel_inode = (ino & (INOSPERPAGE - 1)); diRead()
604 s32 ino; diWrite() local
623 ino = ip->i_ino & (INOSPERIAG - 1); diWrite()
636 blkno = INOPBLK(&(jfs_ip->ixpxd), ino, sbi->l2nbperpage); diWrite()
638 rel_inode = (ino & (INOSPERPAGE - 1)); diWrite()
665 dioffset = (ino & (INOSPERPAGE - 1)) << L2DISIZE; diWrite()
869 int iagno, ino, extno, bitno, sword, agno; diFree() local
901 /* get the allocation group for this ino. diFree()
926 ino = inum & (INOSPERIAG - 1); diFree()
927 extno = ino >> L2INOSPEREXT; diFree()
928 bitno = ino & (INOSPEREXT - 1); diFree()
1314 diInitInode(struct inode *ip, int iagno, int ino, int extno, struct iag * iagp) diInitInode() argument
1318 ip->i_ino = (iagno << L2INOSPERIAG) + ino; diInitInode()
1343 int rc, ino, iagno, addext, extno, bitno, sword; diAlloc() local
1393 ino = inum & (INOSPERIAG - 1); diAlloc()
1396 if (ino == 0) diAlloc()
1429 extno = ino >> L2INOSPEREXT; diAlloc()
1435 bitno = ino & (INOSPEREXT - 1); diAlloc()
1440 ino = (extno << L2INOSPEREXT) + bitno; diAlloc()
1445 rc = diAllocBit(imap, iagp, ino); diAlloc()
1453 diInitInode(ip, iagno, ino, extno, diAlloc()
1527 ino = (extno << L2INOSPEREXT) + rem; diAlloc()
1528 rc = diAllocBit(imap, iagp, ino); diAlloc()
1536 diInitInode(ip, iagno, ino, extno, diAlloc()
1785 int iagno, ino, rc, rem, extno, sword; diAllocIno() local
1855 ino = (extno << L2INOSPEREXT) + rem; diAllocIno()
1859 rc = diAllocBit(imap, iagp, ino); diAllocIno()
1868 diInitInode(ip, iagno, ino, extno, iagp); diAllocIno()
1995 * NAME: diAllocBit(imap,iagp,ino)
2017 * ino - inode number to be allocated within the iag.
2024 static int diAllocBit(struct inomap * imap, struct iag * iagp, int ino) diAllocBit() argument
2062 extno = ino >> L2INOSPEREXT; diAllocBit()
2063 bitno = ino & (INOSPEREXT - 1); diAllocBit()
2179 ino_t ino; diNewExt() local
2279 ino = (iagno << L2INOSPERIAG) + (extno << L2INOSPEREXT); diNewExt()
2297 for (j = 0; j < INOSPERPAGE; j++, dp++, ino++) { diNewExt()
2299 dp->di_number = cpu_to_le32(ino); diNewExt()
2743 int iagno, ino, extno, bitno; diUpdatePMap() local
2769 ino = inum & (INOSPERIAG - 1); diUpdatePMap()
2770 extno = ino >> L2INOSPEREXT; diUpdatePMap()
2771 bitno = ino & (INOSPEREXT - 1); diUpdatePMap()
/linux-4.1.27/fs/ext2/
H A Dialloc.c107 unsigned long ino; ext2_free_inode() local
113 ino = inode->i_ino; ext2_free_inode()
114 ext2_debug ("freeing inode %lu\n", ino); ext2_free_inode()
127 if (ino < EXT2_FIRST_INO(sb) || ext2_free_inode()
128 ino > le32_to_cpu(es->s_inodes_count)) { ext2_free_inode()
130 "reserved or nonexistent inode %lu", ino); ext2_free_inode()
133 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); ext2_free_inode()
134 bit = (ino - 1) % EXT2_INODES_PER_GROUP(sb); ext2_free_inode()
143 "bit already cleared for inode %lu", ino); ext2_free_inode()
437 ino_t ino = 0; ext2_new_inode() local
474 ino = 0; ext2_new_inode()
477 ino = ext2_find_next_zero_bit((unsigned long *)bitmap_bh->b_data, ext2_new_inode()
478 EXT2_INODES_PER_GROUP(sb), ino); ext2_new_inode()
479 if (ino >= EXT2_INODES_PER_GROUP(sb)) { ext2_new_inode()
493 ino, bitmap_bh->b_data)) { ext2_new_inode()
495 if (++ino >= EXT2_INODES_PER_GROUP(sb)) { ext2_new_inode()
518 ino += group * EXT2_INODES_PER_GROUP(sb) + 1; ext2_new_inode()
519 if (ino < EXT2_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { ext2_new_inode()
523 (unsigned long) ino); ext2_new_inode()
552 inode->i_ino = ino; ext2_new_inode()
575 (unsigned long) ino); ext2_new_inode()
H A Dnamei.c60 ino_t ino; ext2_lookup() local
65 ino = ext2_inode_by_name(dir, &dentry->d_name); ext2_lookup()
67 if (ino) { ext2_lookup()
68 inode = ext2_iget(dir->i_sb, ino); ext2_lookup()
72 (unsigned long) ino); ext2_lookup()
82 unsigned long ino = ext2_inode_by_name(d_inode(child), &dotdot); ext2_get_parent() local
83 if (!ino) ext2_get_parent()
85 return d_obtain_alias(ext2_iget(d_inode(child)->i_sb, ino)); ext2_get_parent()
H A Dinode.c1229 static struct ext2_inode *ext2_get_inode(struct super_block *sb, ino_t ino, ext2_get_inode() argument
1239 if ((ino != EXT2_ROOT_INO && ino < EXT2_FIRST_INO(sb)) || ext2_get_inode()
1240 ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) ext2_get_inode()
1243 block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb); ext2_get_inode()
1250 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(sb)) * EXT2_INODE_SIZE(sb); ext2_get_inode()
1262 (unsigned long) ino); ext2_get_inode()
1267 (unsigned long) ino, block); ext2_get_inode()
1311 struct inode *ext2_iget (struct super_block *sb, unsigned long ino) ext2_iget() argument
1322 inode = iget_locked(sb, ino); ext2_iget()
1331 raw_inode = ext2_get_inode(inode->i_sb, ino, &bh); ext2_iget()
1378 ei->i_block_group = (ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); ext2_iget()
1439 ino_t ino = inode->i_ino; __ext2_write_inode() local
1443 struct ext2_inode * raw_inode = ext2_get_inode(sb, ino, &bh); __ext2_write_inode()
1531 sb->s_id, (unsigned long) ino); __ext2_write_inode()
/linux-4.1.27/kernel/
H A Daudit_watch.c51 unsigned long ino; /* associated inode number */ member in struct:audit_watch
139 int audit_watch_compare(struct audit_watch *watch, unsigned long ino, dev_t dev) audit_watch_compare() argument
141 return (watch->ino != (unsigned long)-1) && audit_watch_compare()
142 (watch->ino == ino) && audit_watch_compare()
183 watch->ino = (unsigned long)-1; audit_init_watch()
230 new->ino = old->ino; audit_dupe_watch()
260 unsigned long ino, unsigned invalidating) audit_update_watch()
279 /* updating ino will likely change which audit_hash_list we audit_update_watch()
288 nwatch->ino = ino; audit_update_watch()
301 int h = audit_hash_ino((u32)ino); audit_update_watch()
368 watch->ino = d_backing_inode(d)->i_ino; audit_get_nd()
443 h = audit_hash_ino((u32)watch->ino); audit_add_watch()
258 audit_update_watch(struct audit_parent *parent, const char *dname, dev_t dev, unsigned long ino, unsigned invalidating) audit_update_watch() argument
H A Daudit.h83 unsigned long ino; member in struct:audit_names
221 static inline int audit_hash_ino(u32 ino) audit_hash_ino() argument
223 return (ino & (AUDIT_INODE_BUCKETS-1)); audit_hash_ino()
271 extern int audit_watch_compare(struct audit_watch *watch, unsigned long ino, dev_t dev);
/linux-4.1.27/fs/ufs/
H A Dialloc.c63 unsigned ino, cg, bit; ufs_free_inode() local
65 UFSD("ENTER, ino %lu\n", inode->i_ino); ufs_free_inode()
70 ino = inode->i_ino; ufs_free_inode()
74 if (!((ino > 1) && (ino < (uspi->s_ncg * uspi->s_ipg )))) { ufs_free_inode()
75 ufs_warning(sb, "ufs_free_inode", "reserved inode or nonexistent inode %u\n", ino); ufs_free_inode()
80 cg = ufs_inotocg (ino); ufs_free_inode()
81 bit = ufs_inotocgoff (ino); ufs_free_inode()
96 ufs_error(sb, "ufs_free_inode", "bit already cleared for inode %u", ino); ufs_free_inode()
99 if (ino < ucpi->c_irotor) ufs_free_inode()
100 ucpi->c_irotor = ino; ufs_free_inode()
H A Dtruncate.c77 UFSD("ENTER: ino %lu\n", inode->i_ino); ufs_trunc_direct()
99 UFSD("ino %lu, frag1 %llu, frag2 %llu, block1 %llu, block2 %llu," ufs_trunc_direct()
166 UFSD("EXIT: ino %lu\n", inode->i_ino); ufs_trunc_direct()
181 UFSD("ENTER: ino %lu, offset %llu, p: %p\n", ufs_trunc_indirect()
249 UFSD("EXIT: ino %lu\n", inode->i_ino); ufs_trunc_indirect()
263 UFSD("ENTER: ino %lu\n", inode->i_ino); ufs_trunc_dindirect()
311 UFSD("EXIT: ino %lu\n", inode->i_ino); ufs_trunc_dindirect()
326 UFSD("ENTER: ino %lu\n", inode->i_ino); ufs_trunc_tindirect()
369 UFSD("EXIT: ino %lu\n", inode->i_ino); ufs_trunc_tindirect()
450 UFSD("ENTER: ino %lu, i_size: %llu, old_i_size: %llu\n", ufs_truncate()
H A Dnamei.c54 ino_t ino; ufs_lookup() local
60 ino = ufs_inode_by_name(dir, &dentry->d_name); ufs_lookup()
61 if (ino) ufs_lookup()
62 inode = ufs_iget(dir->i_sb, ino); ufs_lookup()
H A Dinode.c185 UFSD("ENTER, ino %lu, fragment %llu, new_fragment %llu, required %u, " ufs_inode_getfrag()
344 UFSD("ENTER, ino %lu, fragment %llu, new_fragment %llu, metadata %d\n", ufs_inode_getblock()
444 UFSD("ENTER, ino %lu, fragment %llu\n", inode->i_ino, (unsigned long long)fragment); ufs_getfrag_block()
639 UFSD("Reading ufs2 inode, ino %lu\n", inode->i_ino); ufs2_read_inode()
682 struct inode *ufs_iget(struct super_block *sb, unsigned long ino) ufs_iget() argument
690 UFSD("ENTER, ino %lu\n", ino); ufs_iget()
692 if (ino < UFS_ROOTINO || ino > (uspi->s_ncg * uspi->s_ipg)) { ufs_iget()
694 ino); ufs_iget()
698 inode = iget_locked(sb, ino); ufs_iget()
834 UFSD("ENTER, ino %lu\n", inode->i_ino); ufs_update_inode()
/linux-4.1.27/fs/nfsd/
H A Dnfsfh.h13 static inline __u32 ino_t_to_u32(ino_t ino) ino_t_to_u32() argument
15 return (__u32) ino; ino_t_to_u32()
86 static inline void mk_fsid(int vers, u32 *fsidv, dev_t dev, ino_t ino, mk_fsid() argument
94 fsidv[1] = ino_t_to_u32(ino); mk_fsid()
102 fsidv[2] = ino_t_to_u32(ino); mk_fsid()
107 fsidv[1] = ino_t_to_u32(ino); mk_fsid()
113 fsidv[0] = ino_t_to_u32(ino); mk_fsid()
131 *(u64*)fsidv = (u64)ino; mk_fsid()
H A Dnfsxdr.c187 *p++ = htonl((u32) stat->ino); encode_fattr()
498 int namlen, loff_t offset, u64 ino, unsigned int d_type) nfssvc_encode_entry()
506 dprintk("nfsd: entry(%.*s off %ld ino %ld)\n", nfssvc_encode_entry()
507 namlen, name, offset, ino); nfssvc_encode_entry()
525 if (ino > ~((u32) 0)) { nfssvc_encode_entry()
530 *p++ = htonl((u32) ino); /* file id */ nfssvc_encode_entry()
497 nfssvc_encode_entry(void *ccdv, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) nfssvc_encode_entry() argument
H A Dnfs3xdr.c181 p = xdr_encode_hyper(p, stat->ino); encode_fattr3()
794 int namlen, u64 ino) encode_entry_baggage()
797 p = xdr_encode_hyper(p, ino); /* file id */ encode_entry_baggage()
873 loff_t offset, u64 ino, unsigned int d_type, int plus) encode_entry()
927 p = encode_entry_baggage(cd, p, name, namlen, ino); encode_entry()
941 p1 = encode_entry_baggage(cd, p1, name, namlen, ino); encode_entry()
1002 int namlen, loff_t offset, u64 ino, unsigned int d_type) nfs3svc_encode_entry()
1004 return encode_entry(cd, name, namlen, offset, ino, d_type, 0); nfs3svc_encode_entry()
1009 int namlen, loff_t offset, u64 ino, nfs3svc_encode_entry_plus()
1012 return encode_entry(cd, name, namlen, offset, ino, d_type, 1); nfs3svc_encode_entry_plus()
793 encode_entry_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, int namlen, u64 ino) encode_entry_baggage() argument
872 encode_entry(struct readdir_cd *ccd, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type, int plus) encode_entry() argument
1001 nfs3svc_encode_entry(void *cd, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) nfs3svc_encode_entry() argument
1008 nfs3svc_encode_entry_plus(void *cd, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type) nfs3svc_encode_entry_plus() argument
/linux-4.1.27/fs/fat/
H A Dnfs.c53 static struct inode *fat_ilookup(struct super_block *sb, u64 ino, loff_t i_pos) fat_ilookup() argument
59 if ((ino < MSDOS_ROOT_INO) || (ino == MSDOS_FSINFO_INO)) fat_ilookup()
61 return ilookup(sb, ino); fat_ilookup()
66 u64 ino, u32 generation, loff_t i_pos) __fat_nfs_get_inode()
68 struct inode *inode = fat_ilookup(sb, ino, i_pos); __fat_nfs_get_inode()
102 u64 ino, u32 generation) fat_nfs_get_inode()
105 return __fat_nfs_get_inode(sb, ino, generation, 0); fat_nfs_get_inode()
65 __fat_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation, loff_t i_pos) __fat_nfs_get_inode() argument
101 fat_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) fat_nfs_get_inode() argument
/linux-4.1.27/fs/openpromfs/
H A Dinode.c41 static struct inode *openprom_iget(struct super_block *sb, ino_t ino);
188 unsigned int ino; openpromfs_lookup() local
208 ino = child->unique_id; openpromfs_lookup()
221 ino = prop->unique_id; openpromfs_lookup()
232 inode = openprom_iget(dir->i_sb, ino); openpromfs_lookup()
350 static struct inode *openprom_iget(struct super_block *sb, ino_t ino) openprom_iget() argument
354 inode = iget_locked(sb, ino); openprom_iget()
/linux-4.1.27/fs/overlayfs/
H A Dreaddir.c23 u64 ino; member in struct:ovl_cache_entry
85 u64 ino, unsigned int d_type) ovl_cache_entry_new()
98 p->ino = ino; ovl_cache_entry_new()
109 const char *name, int len, u64 ino, ovl_cache_entry_add_rb()
131 p = ovl_cache_entry_new(rdd, name, len, ino, d_type); ovl_cache_entry_add_rb()
144 loff_t offset, u64 ino, unsigned int d_type) ovl_fill_lower()
152 p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type); ovl_fill_lower()
189 int namelen, loff_t offset, u64 ino, ovl_fill_merge()
197 return ovl_cache_entry_add_rb(rdd, name, namelen, ino, d_type); ovl_fill_merge()
199 return ovl_fill_lower(rdd, name, namelen, offset, ino, d_type); ovl_fill_merge()
389 if (!dir_emit(ctx, p->name, p->len, p->ino, p->type)) ovl_iterate()
83 ovl_cache_entry_new(struct ovl_readdir_data *rdd, const char *name, int len, u64 ino, unsigned int d_type) ovl_cache_entry_new() argument
108 ovl_cache_entry_add_rb(struct ovl_readdir_data *rdd, const char *name, int len, u64 ino, unsigned int d_type) ovl_cache_entry_add_rb() argument
142 ovl_fill_lower(struct ovl_readdir_data *rdd, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_lower() argument
188 ovl_fill_merge(struct dir_context *ctx, const char *name, int namelen, loff_t offset, u64 ino, unsigned int d_type) ovl_fill_merge() argument
/linux-4.1.27/init/
H A Dinitramfs.c57 int ino, minor, major; member in struct:hash
63 static inline int hash(int major, int minor, int ino) hash() argument
65 unsigned long tmp = ino + minor + (major << 3); hash()
70 static char __init *find_link(int major, int minor, int ino, find_link() argument
74 for (p = head + hash(major, minor, ino); *p; p = &(*p)->next) { find_link()
75 if ((*p)->ino != ino) find_link()
90 q->ino = ino; find_link()
155 static __initdata unsigned long ino, major, minor, nlink; variable
173 ino = parsed[0]; parse_header()
305 char *old = find_link(major, minor, ino, mode, collected); maybe_link()
/linux-4.1.27/fs/xfs/libxfs/
H A Dxfs_symlink_remote.c53 xfs_ino_t ino, xfs_symlink_hdr_set()
67 dsl->sl_owner = cpu_to_be64(ino); xfs_symlink_hdr_set()
81 xfs_ino_t ino, xfs_symlink_hdr_ok()
92 if (ino != be64_to_cpu(dsl->sl_owner)) xfs_symlink_hdr_ok()
51 xfs_symlink_hdr_set( struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset, uint32_t size, struct xfs_buf *bp) xfs_symlink_hdr_set() argument
80 xfs_symlink_hdr_ok( xfs_ino_t ino, uint32_t offset, uint32_t size, struct xfs_buf *bp) xfs_symlink_hdr_ok() argument
H A Dxfs_da_format.c44 sizeof(xfs_dir2_ino4_t); /* ino # */ xfs_dir2_sf_entsize()
140 xfs_ino_t ino) xfs_dir2_sf_put_ino()
142 ASSERT((ino & 0xff00000000000000ULL) == 0); xfs_dir2_sf_put_ino()
145 put_unaligned_be64(ino, &to->i8.i); xfs_dir2_sf_put_ino()
147 put_unaligned_be32(ino, &to->i4.i); xfs_dir2_sf_put_ino()
160 xfs_ino_t ino) xfs_dir2_sf_put_parent_ino()
162 xfs_dir2_sf_put_ino(hdr, &hdr->parent, ino); xfs_dir2_sf_put_parent_ino()
184 xfs_ino_t ino) xfs_dir2_sfe_put_ino()
187 (xfs_dir2_inou_t *)&sfep->name[sfep->namelen], ino); xfs_dir2_sfe_put_ino() local
203 xfs_ino_t ino) xfs_dir3_sfe_put_ino()
206 (xfs_dir2_inou_t *)&sfep->name[sfep->namelen + 1], ino); xfs_dir3_sfe_put_ino() local
137 xfs_dir2_sf_put_ino( struct xfs_dir2_sf_hdr *hdr, xfs_dir2_inou_t *to, xfs_ino_t ino) xfs_dir2_sf_put_ino() argument
158 xfs_dir2_sf_put_parent_ino( struct xfs_dir2_sf_hdr *hdr, xfs_ino_t ino) xfs_dir2_sf_put_parent_ino() argument
181 xfs_dir2_sfe_put_ino( struct xfs_dir2_sf_hdr *hdr, struct xfs_dir2_sf_entry *sfep, xfs_ino_t ino) xfs_dir2_sfe_put_ino() argument
200 xfs_dir3_sfe_put_ino( struct xfs_dir2_sf_hdr *hdr, struct xfs_dir2_sf_entry *sfep, xfs_ino_t ino) xfs_dir3_sfe_put_ino() argument
H A Dxfs_attr_remote.c70 xfs_ino_t ino, xfs_attr3_rmt_hdr_ok()
83 if (ino != be64_to_cpu(rmt->rm_owner)) xfs_attr3_rmt_hdr_ok()
212 xfs_ino_t ino, xfs_attr3_rmt_hdr_set()
226 rmt->rm_owner = cpu_to_be64(ino); xfs_attr3_rmt_hdr_set()
251 xfs_ino_t ino, xfs_attr_rmtval_copyout()
270 if (!xfs_attr3_rmt_hdr_ok(src, ino, *offset, xfs_attr_rmtval_copyout()
274 bno, *offset, byte_cnt, ino); xfs_attr_rmtval_copyout()
299 xfs_ino_t ino, xfs_attr_rmtval_copyin()
316 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, xfs_attr_rmtval_copyin()
68 xfs_attr3_rmt_hdr_ok( void *ptr, xfs_ino_t ino, uint32_t offset, uint32_t size, xfs_daddr_t bno) xfs_attr3_rmt_hdr_ok() argument
209 xfs_attr3_rmt_hdr_set( struct xfs_mount *mp, void *ptr, xfs_ino_t ino, uint32_t offset, uint32_t size, xfs_daddr_t bno) xfs_attr3_rmt_hdr_set() argument
248 xfs_attr_rmtval_copyout( struct xfs_mount *mp, struct xfs_buf *bp, xfs_ino_t ino, int *offset, int *valuelen, __uint8_t **dst) xfs_attr_rmtval_copyout() argument
296 xfs_attr_rmtval_copyin( struct xfs_mount *mp, struct xfs_buf *bp, xfs_ino_t ino, int *offset, int *valuelen, __uint8_t **src) xfs_attr_rmtval_copyin() argument
H A Dxfs_ialloc.c58 * Lookup a record by ino in the btree given by cur.
63 xfs_agino_t ino, /* starting inode of chunk */ xfs_inobt_lookup()
67 cur->bc_rec.i.ir_startino = ino; xfs_inobt_lookup()
234 xfs_ino_t ino = 0; xfs_ialloc_inode_init() local
266 ino = XFS_AGINO_TO_INO(mp, agno, xfs_ialloc_inode_init()
308 free->di_ino = cpu_to_be64(ino); xfs_ialloc_inode_init()
309 ino++; xfs_ialloc_inode_init()
752 xfs_ino_t ino; xfs_dialloc_ag_inobt() local
969 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); xfs_dialloc_ag_inobt()
986 *inop = ino; xfs_dialloc_ag_inobt()
1178 xfs_ino_t ino; xfs_dialloc_ag() local
1218 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); xfs_dialloc_ag()
1268 *inop = ino; xfs_dialloc_ag()
1813 xfs_ino_t ino, /* inode to locate */ xfs_imap()
1827 ASSERT(ino != NULLFSINO); xfs_imap()
1832 agno = XFS_INO_TO_AGNO(mp, ino); xfs_imap()
1833 agino = XFS_INO_TO_AGINO(mp, ino); xfs_imap()
1836 ino != XFS_AGINO_TO_INO(mp, agno, agino)) { xfs_imap()
1855 if (ino != XFS_AGINO_TO_INO(mp, agno, agino)) { xfs_imap()
1857 "%s: ino (0x%llx) != XFS_AGINO_TO_INO() (0x%llx)", xfs_imap()
1858 __func__, ino, xfs_imap()
1888 offset = XFS_INO_TO_OFFSET(mp, ino); xfs_imap()
1917 XFS_INO_TO_OFFSET(mp, ino); xfs_imap()
61 xfs_inobt_lookup( struct xfs_btree_cur *cur, xfs_agino_t ino, xfs_lookup_t dir, int *stat) xfs_inobt_lookup() argument
1810 xfs_imap( xfs_mount_t *mp, xfs_trans_t *tp, xfs_ino_t ino, struct xfs_imap *imap, uint flags) xfs_imap() argument
H A Dxfs_dir2.c194 xfs_ino_t ino) xfs_dir_ino_validate()
202 agno = XFS_INO_TO_AGNO(mp, ino); xfs_dir_ino_validate()
203 agblkno = XFS_INO_TO_AGBNO(mp, ino); xfs_dir_ino_validate()
204 ioff = XFS_INO_TO_OFFSET(mp, ino); xfs_dir_ino_validate()
211 XFS_AGINO_TO_INO(mp, agno, agino) == ino; xfs_dir_ino_validate()
215 (unsigned long long) ino); xfs_dir_ino_validate()
434 xfs_ino_t ino, xfs_dir_removename()
455 args->inumber = ino; xfs_dir_removename()
192 xfs_dir_ino_validate( xfs_mount_t *mp, xfs_ino_t ino) xfs_dir_ino_validate() argument
430 xfs_dir_removename( xfs_trans_t *tp, xfs_inode_t *dp, struct xfs_name *name, xfs_ino_t ino, xfs_fsblock_t *first, xfs_bmap_free_t *flist, xfs_extlen_t total) xfs_dir_removename() argument
H A Dxfs_dir2.h55 xfs_ino_t ino);
58 xfs_ino_t ino);
137 struct xfs_name *name, xfs_ino_t ino,
H A Dxfs_dir2_sf.c608 xfs_ino_t ino; /* entry inode number */ xfs_dir2_sf_check() local
617 ino = dp->d_ops->sf_get_parent_ino(sfp); xfs_dir2_sf_check()
618 i8count = ino > XFS_DIR2_MAX_SHORT_INUM; xfs_dir2_sf_check()
624 ino = dp->d_ops->sf_get_ino(sfp, sfep); xfs_dir2_sf_check()
625 i8count += ino > XFS_DIR2_MAX_SHORT_INUM; xfs_dir2_sf_check()
874 xfs_ino_t ino=0; /* entry old inode number */ xfs_dir2_sf_replace() local
933 ino = dp->d_ops->sf_get_parent_ino(sfp); xfs_dir2_sf_replace()
934 ASSERT(args->inumber != ino); xfs_dir2_sf_replace()
945 ino = dp->d_ops->sf_get_ino(sfp, sfep); xfs_dir2_sf_replace()
946 ASSERT(args->inumber != ino); xfs_dir2_sf_replace()
965 if (ino > XFS_DIR2_MAX_SHORT_INUM && xfs_dir2_sf_replace()
978 if (ino <= XFS_DIR2_MAX_SHORT_INUM && xfs_dir2_sf_replace()
H A Dxfs_ialloc.h103 xfs_ino_t ino, /* inode to locate */
144 * Lookup a record by ino in the btree given by cur.
146 int xfs_inobt_lookup(struct xfs_btree_cur *cur, xfs_agino_t ino,
/linux-4.1.27/usr/
H A Dgen_init_cpio.c24 static unsigned int ino = 721; variable
80 0, /* ino */ cpio_trailer()
112 ino++, /* ino */ cpio_mkslink()
161 ino++, /* ino */ cpio_mkgeneric()
255 ino++, /* ino */ cpio_mknod()
345 ino, /* ino */ cpio_mkfile()
373 ino++; cpio_mkfile()
/linux-4.1.27/drivers/isdn/mISDN/
H A Dtimerdev.c51 mISDN_open(struct inode *ino, struct file *filep) mISDN_open() argument
56 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); mISDN_open()
67 return nonseekable_open(ino, filep); mISDN_open()
71 mISDN_close(struct inode *ino, struct file *filep) mISDN_close() argument
78 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); mISDN_close()
/linux-4.1.27/net/unix/
H A Ddiag.c41 int ino; sk_diag_dump_peer() local
46 ino = sock_i_ino(peer); sk_diag_dump_peer()
50 return nla_put_u32(nlskb, UNIX_DIAG_PEER, ino); sk_diag_dump_peer()
223 static struct sock *unix_lookup_by_ino(unsigned int ino) unix_lookup_by_ino() argument
231 if (ino == sock_i_ino(sk)) { unix_lookup_by_ino()
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Ddivamnt.c130 static int maint_open(struct inode *ino, struct file *filep) maint_open() argument
141 ret = nonseekable_open(ino, filep); maint_open()
147 static int maint_close(struct inode *ino, struct file *filep) maint_close() argument
/linux-4.1.27/drivers/fmc/
H A Dfmc-chardev.c30 static int fc_open(struct inode *ino, struct file *f) fc_open() argument
34 int minor = iminor(ino); fc_open()
49 static int fc_release(struct inode *ino, struct file *f) fc_release() argument
/linux-4.1.27/fs/omfs/
H A Ddir.c305 ino_t ino = be64_to_cpu(oi->i_head.h_self); omfs_lookup() local
307 inode = omfs_iget(dir->i_sb, ino); omfs_lookup()
320 u64 ino = be64_to_cpu(header->h_self); omfs_is_bad() local
321 is_bad = ((ino != fsblock) || (ino < sbi->s_root_ino) || omfs_is_bad()
322 (ino > sbi->s_num_blocks)); omfs_is_bad()
H A Domfs.h65 extern int omfs_find_empty_block(struct super_block *sb, int mode, ino_t *ino);
H A Dinode.c200 struct inode *omfs_iget(struct super_block *sb, ino_t ino) omfs_iget() argument
209 inode = iget_locked(sb, ino); omfs_iget()
215 bh = omfs_bread(inode->i_sb, ino); omfs_iget()
222 if (ino != be64_to_cpu(oi->i_head.h_self)) omfs_iget()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
H A Dllog_internal.h75 lustre_build_llog_lvfs_oid(struct llog_logid *logid, __u64 ino, __u32 gen) lustre_build_llog_lvfs_oid() argument
78 ostid_set_id(&logid->lgl_oi, ino); lustre_build_llog_lvfs_oid()
/linux-4.1.27/fs/notify/
H A Dfdinfo.c85 seq_printf(m, "inotify wd:%x ino:%lx sdev:%x mask:%x ignored_mask:%x ", inotify_fdinfo()
118 seq_printf(m, "fanotify ino:%lx sdev:%x mflags:%x mask:%x ignored_mask:%x ", fanotify_fdinfo()
/linux-4.1.27/fs/exportfs/
H A Dexpfs.c235 u64 ino; /* the inum we are looking for */ member in struct:getdents_callback
245 loff_t pos, u64 ino, unsigned int d_type) filldir_one()
252 if (buf->ino == ino && len <= NAME_MAX) { filldir_one()
293 * inode->i_ino is unsigned long, kstat->ino is u64, so the get_name()
301 buffer.ino = stat.ino; get_name()
365 fid->i32.ino = inode->i_ino; export_encode_fh()
244 filldir_one(struct dir_context *ctx, const char *name, int len, loff_t pos, u64 ino, unsigned int d_type) filldir_one() argument
/linux-4.1.27/fs/udf/
H A Dudfdecl.h144 struct kernel_lb_addr *ino) udf_iget_special()
146 return __udf_iget(sb, ino, true); udf_iget_special()
149 struct kernel_lb_addr *ino) udf_iget()
151 return __udf_iget(sb, ino, false); udf_iget()
143 udf_iget_special(struct super_block *sb, struct kernel_lb_addr *ino) udf_iget_special() argument
148 udf_iget(struct super_block *sb, struct kernel_lb_addr *ino) udf_iget() argument
/linux-4.1.27/include/net/
H A Draw.h55 int raw_seq_open(struct inode *ino, struct file *file,
/linux-4.1.27/fs/exofs/
H A Dnamei.c52 ino_t ino; exofs_lookup() local
57 ino = exofs_inode_by_name(dir, dentry); exofs_lookup()
58 inode = ino ? exofs_iget(dir->i_sb, ino) : NULL; exofs_lookup()
/linux-4.1.27/security/integrity/
H A Dintegrity_audit.c61 audit_log_format(ab, " ino=%lu", inode->i_ino); integrity_audit_msg()
/linux-4.1.27/drivers/isdn/hysdn/
H A Dhysdn_procconf.c229 hysdn_conf_open(struct inode *ino, struct file *filep) hysdn_conf_open() argument
237 card = PDE_DATA(ino); hysdn_conf_open()
297 return nonseekable_open(ino, filep); hysdn_conf_open()
304 hysdn_conf_close(struct inode *ino, struct file *filep) hysdn_conf_close() argument
311 card = PDE_DATA(ino); hysdn_conf_close()
H A Dhysdn_proclog.c204 hysdn_log_open(struct inode *ino, struct file *filep) hysdn_log_open() argument
206 hysdn_card *card = PDE_DATA(ino); hysdn_log_open()
229 return nonseekable_open(ino, filep); hysdn_log_open()
240 hysdn_log_close(struct inode *ino, struct file *filep) hysdn_log_close() argument
/linux-4.1.27/security/selinux/
H A Dselinuxfs.c207 ino_t ino = file_inode(filp)->i_ino; sel_read_handle_unknown() local
208 int handle_unknown = (ino == SEL_REJECT_UNKNOWN) ? sel_read_handle_unknown()
350 unsigned long *ino);
676 ino_t ino = file_inode(file)->i_ino; selinux_transaction_write() local
680 if (ino >= ARRAY_SIZE(write_op) || !write_op[ino]) selinux_transaction_write()
687 rv = write_op[ino](file, data, size); selinux_transaction_write()
1522 static inline u16 sel_ino_to_class(unsigned long ino) sel_ino_to_class() argument
1524 return (ino & SEL_INO_MASK) / (SEL_VEC_MAX + 1); sel_ino_to_class()
1532 static inline u32 sel_ino_to_perm(unsigned long ino) sel_ino_to_perm() argument
1534 return (ino & SEL_INO_MASK) % (SEL_VEC_MAX + 1); sel_ino_to_perm()
1540 unsigned long ino = file_inode(file)->i_ino; sel_read_class() local
1542 ssize_t len = snprintf(res, sizeof(res), "%d", sel_ino_to_class(ino)); sel_read_class()
1554 unsigned long ino = file_inode(file)->i_ino; sel_read_perm() local
1556 ssize_t len = snprintf(res, sizeof(res), "%d", sel_ino_to_perm(ino)); sel_read_perm()
1719 unsigned long *ino) sel_make_dir()
1735 inode->i_ino = ++(*ino); sel_make_dir()
1718 sel_make_dir(struct dentry *dir, const char *name, unsigned long *ino) sel_make_dir() argument
/linux-4.1.27/drivers/staging/lustre/lustre/include/
H A Dlustre_fid.h669 __u64 ino; fid_flatten() local
673 ino = lu_igif_ino(fid); fid_flatten()
674 return ino; fid_flatten()
679 ino = (seq << 24) + ((seq >> 24) & 0xffffff0000ULL) + fid_oid(fid); fid_flatten()
681 return ino ? ino : fid_oid(fid); fid_flatten()
692 * map fid to 32 bit value for ino on 32bit systems. */ fid_flatten32()
695 __u32 ino; fid_flatten32() local
699 ino = lu_igif_ino(fid); fid_flatten32()
700 return ino; fid_flatten32()
710 ino = ((seq & 0x000fffffULL) << 12) + ((seq >> 8) & 0xfffff000) + fid_flatten32()
714 return ino ? ino : fid_oid(fid); fid_flatten32()
/linux-4.1.27/fs/ncpfs/
H A Ddir.c588 ino_t ino = 0; ncp_fill_cache() local
628 entry->ino = iunique(dir->i_sb, 2); ncp_fill_cache()
665 ino = d_inode(newdent)->i_ino; ncp_fill_cache()
675 if (!ino) ncp_fill_cache()
676 ino = iunique(dir->i_sb, 2); ncp_fill_cache()
678 ino, DT_UNKNOWN); ncp_fill_cache()
810 struct inode* ino = d_inode(dent); ncp_conn_logged_in() local
811 if (ino) { ncp_conn_logged_in()
813 NCP_FINFO(ino)->volNumber = volNumber; ncp_conn_logged_in()
814 NCP_FINFO(ino)->dirEntNum = dirEntNum; ncp_conn_logged_in()
815 NCP_FINFO(ino)->DosDirNum = DosDirNum; ncp_conn_logged_in()
869 finfo.ino = iunique(dir->i_sb, 2); ncp_lookup()
895 finfo->ino = iunique(dir->i_sb, 2); ncp_instantiate()
H A Dncp_fs.h36 ino_t ino; member in struct:ncp_entry_info
/linux-4.1.27/security/tomoyo/
H A Daudit.c196 "ino=%lu perm=0%o }", (i >> 1) + 1, tomoyo_print_header()
199 (unsigned long)stat->ino, tomoyo_print_header()
204 " path%u={ uid=%u gid=%u ino=%lu major=%u" tomoyo_print_header()
208 (unsigned long)stat->ino, tomoyo_print_header()
/linux-4.1.27/drivers/isdn/divert/
H A Ddivert_procfs.c139 isdn_divert_open(struct inode *ino, struct file *filep) isdn_divert_open() argument
151 return nonseekable_open(ino, filep); isdn_divert_open()
158 isdn_divert_close(struct inode *ino, struct file *filep) isdn_divert_close() argument
/linux-4.1.27/drivers/pci/
H A Dproc.c113 struct inode *ino = file_inode(file); proc_bus_pci_write() local
114 struct pci_dev *dev = PDE_DATA(ino); proc_bus_pci_write()
180 i_size_write(ino, dev->cfg_size); proc_bus_pci_write()
/linux-4.1.27/fs/hppfs/
H A Dhppfs.c141 static struct dentry *hppfs_lookup(struct inode *ino, struct dentry *dentry, hppfs_lookup() argument
155 parent = HPPFS_I(ino)->proc_dentry; hppfs_lookup()
164 inode = get_inode(ino->i_sb, proc_dentry); hppfs_lookup()
612 void hppfs_evict_inode(struct inode *ino) hppfs_evict_inode() argument
614 clear_inode(ino); hppfs_evict_inode()
615 dput(HPPFS_I(ino)->proc_dentry); hppfs_evict_inode()
616 mntput(ino->i_sb->s_fs_info); hppfs_evict_inode()
/linux-4.1.27/fs/quota/
H A Dquota.c341 fqs->qs_uquota.qfs_ino = state.s_state[USRQUOTA].ino; quota_getstate()
346 fqs->qs_gquota.qfs_ino = state.s_state[GRPQUOTA].ino; quota_getstate()
357 fqs->qs_gquota.qfs_ino = state.s_state[PRJQUOTA].ino; quota_getstate()
411 fqs->qs_uquota.qfs_ino = state.s_state[USRQUOTA].ino; quota_getstatev()
416 fqs->qs_gquota.qfs_ino = state.s_state[GRPQUOTA].ino; quota_getstatev()
421 fqs->qs_pquota.qfs_ino = state.s_state[PRJQUOTA].ino; quota_getstatev()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dllite_close.c93 CWARN("ino %lu/%u(flags %u) som valid it just after recovery\n", ll_queue_done_writing()
126 CERROR("ino %lu/%u(flags %u) som valid it just after recovery\n", ll_done_writing_attr()
220 CERROR("ino %lu/%u(flags %u) som valid it just after recovery\n", ll_som_update()
/linux-4.1.27/security/
H A Dlsm_audit.c244 audit_log_format(ab, " ino=%lu", inode->i_ino); dump_common_audit_data()
258 audit_log_format(ab, " ino=%lu", inode->i_ino); dump_common_audit_data()
276 audit_log_format(ab, " ino=%lu", inode->i_ino); dump_common_audit_data()
/linux-4.1.27/drivers/staging/lustre/lustre/fid/
H A Dfid_lib.c58 * IGIF : 0:32, ino:32 gen:32 0:32
/linux-4.1.27/fs/romfs/
H A Dsuper.c155 int j, ino, nextfh; romfs_readdir() local
194 ino = offset; romfs_readdir()
197 ino = be32_to_cpu(ri.spec); romfs_readdir()
198 if (!dir_emit(ctx, fsname, j, ino, romfs_readdir()

Completed in 3945 milliseconds

123