| /linux/fs/xfs/ |
| H A D | xfs_inode.h | 17 struct xfs_inode; 25 typedef struct xfs_inode { struct 103 static inline bool xfs_inode_on_unlinked_list(const struct xfs_inode *ip) in xfs_inode_on_unlinked_list() argument 108 static inline bool xfs_inode_has_attr_fork(const struct xfs_inode *ip) in xfs_inode_has_attr_fork() 115 struct xfs_inode *ip, in xfs_ifork_ptr() 133 static inline unsigned int xfs_inode_fork_boff(struct xfs_inode *ip) in xfs_inode_fork_boff() 138 static inline unsigned int xfs_inode_data_fork_size(struct xfs_inode *ip) in xfs_inode_data_fork_size() 146 static inline unsigned int xfs_inode_attr_fork_size(struct xfs_inode *ip) in xfs_inode_attr_fork_size() 155 struct xfs_inode *ip, in xfs_inode_fork_size() 169 static inline struct xfs_inode *XFS_I(struct inode *inode) in XFS_I() [all …]
|
| H A D | xfs_reflink.h | 16 xfs_can_free_cowblocks(struct xfs_inode *ip) in xfs_can_free_cowblocks() 28 int xfs_reflink_trim_around_shared(struct xfs_inode *ip, 30 int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 33 int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 36 extern int xfs_reflink_convert_cow(struct xfs_inode *ip, xfs_off_t offset, 38 int xfs_reflink_convert_cow_locked(struct xfs_inode *ip, 41 extern int xfs_reflink_cancel_cow_blocks(struct xfs_inode *ip, 44 extern int xfs_reflink_cancel_cow_range(struct xfs_inode *ip, xfs_off_t offset, 46 extern int xfs_reflink_end_cow(struct xfs_inode *ip, xfs_off_t offset, 48 int xfs_reflink_end_atomic_cow(struct xfs_inode *ip, xfs_off_t offset, [all …]
|
| H A D | xfs_bmap_util.h | 14 struct xfs_inode; 34 void xfs_bmap_punch_delalloc_range(struct xfs_inode *ip, int whichfork, 44 int xfs_getbmap(struct xfs_inode *ip, struct getbmapx *bmv, 53 int xfs_bmap_last_extent(struct xfs_trans *tp, struct xfs_inode *ip, 63 int xfs_alloc_file_space(struct xfs_inode *ip, xfs_off_t offset, 65 int xfs_free_file_space(struct xfs_inode *ip, xfs_off_t offset, 67 int xfs_collapse_file_space(struct xfs_inode *, xfs_off_t offset, 69 int xfs_insert_file_space(struct xfs_inode *, xfs_off_t offset, 73 bool xfs_can_free_eofblocks(struct xfs_inode *ip); 74 int xfs_free_eofblocks(struct xfs_inode *ip); [all …]
|
| H A D | xfs_quota.h | 96 extern void xfs_trans_mod_dquot_byino(struct xfs_trans *, struct xfs_inode *, 101 int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp, struct xfs_inode *ip, 110 extern int xfs_qm_vop_dqalloc(struct xfs_inode *, kuid_t, kgid_t, 113 extern void xfs_qm_vop_create_dqattach(struct xfs_trans *, struct xfs_inode *, 115 extern int xfs_qm_vop_rename_dqattach(struct xfs_inode **); 117 struct xfs_inode *, struct xfs_dquot **, struct xfs_dquot *); 118 extern int xfs_qm_dqattach(struct xfs_inode *); 119 extern int xfs_qm_dqattach_locked(struct xfs_inode *ip, bool doalloc); 120 extern void xfs_qm_dqdetach(struct xfs_inode *); 122 extern void xfs_qm_statvfs(struct xfs_inode *, struct kstatfs *); [all …]
|
| H A D | xfs_inode_item.h | 13 struct xfs_inode; 18 struct xfs_inode *ili_inode; /* inode ptr */ 48 static inline int xfs_inode_clean(struct xfs_inode *ip) in xfs_inode_clean() 53 extern void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *); 54 extern void xfs_inode_item_destroy(struct xfs_inode *); 55 extern void xfs_iflush_abort(struct xfs_inode *); 56 extern void xfs_iflush_shutdown_abort(struct xfs_inode *);
|
| H A D | xfs_iomap.h | 11 struct xfs_inode; 15 int xfs_iomap_write_direct(struct xfs_inode *ip, xfs_fileoff_t offset_fsb, 18 int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t, bool); 19 xfs_fileoff_t xfs_iomap_eof_align_last_fsb(struct xfs_inode *ip, 22 u64 xfs_iomap_inode_sequence(struct xfs_inode *ip, u16 iomap_flags); 23 int xfs_bmbt_to_iomap(struct xfs_inode *ip, struct iomap *iomap, 27 int xfs_zero_range(struct xfs_inode *ip, loff_t pos, loff_t len, 29 int xfs_truncate_page(struct xfs_inode *ip, loff_t pos, 34 struct xfs_inode *ip, in xfs_iomap_set_anon_write()
|
| H A D | xfs_icache.h | 49 struct xfs_inode * xfs_inode_alloc(struct xfs_mount *mp, xfs_ino_t ino); 50 void xfs_inode_free(struct xfs_inode *ip); 58 void xfs_inode_mark_reclaimable(struct xfs_inode *ip); 63 int xfs_blockgc_free_quota(struct xfs_inode *ip, unsigned int iwalk_flags); 67 void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip); 68 void xfs_inode_clear_eofblocks_tag(struct xfs_inode *ip); 70 void xfs_inode_set_cowblocks_tag(struct xfs_inode *ip); 71 void xfs_inode_clear_cowblocks_tag(struct xfs_inode *ip);
|
| H A D | xfs_inode.c | 67 struct xfs_inode *ip) in xfs_ilock_data_map_shared() 79 struct xfs_inode *ip) in xfs_ilock_attr_map_shared() 292 struct xfs_inode *ip, in xfs_assert_ilocked() 383 struct xfs_inode **ips, in xfs_lock_inodes() 484 struct xfs_inode *ip0, in xfs_lock_two_inodes() 486 struct xfs_inode *ip1, in xfs_lock_two_inodes() 534 struct xfs_inode *dp, in xfs_lookup() 536 struct xfs_inode **ipp, in xfs_lookup() 590 struct xfs_inode **ipp) in xfs_icreate() 593 struct xfs_inode *ip = NULL; in xfs_icreate() [all …]
|
| H A D | xfs_symlink.h | 10 int xfs_symlink(struct mnt_idmap *idmap, struct xfs_inode *dp, 12 umode_t mode, struct xfs_inode **ipp); 13 int xfs_readlink(struct xfs_inode *ip, char *link); 14 int xfs_inactive_symlink(struct xfs_inode *ip);
|
| H A D | xfs_icache.c | 89 struct xfs_inode * 95 struct xfs_inode *ip; in xfs_inode_alloc() 137 struct xfs_inode *ip = XFS_I(inode); in xfs_inode_free_callback() 164 struct xfs_inode *ip) in __xfs_inode_free() 179 struct xfs_inode *ip) in xfs_inode_free() 360 struct xfs_inode *ip) in xfs_iget_recycle() 418 struct xfs_inode *ip, in xfs_iget_check_free_state() 497 struct xfs_inode *ip, in xfs_iget_cache_hit() 625 struct xfs_inode **ipp, in xfs_iget_cache_miss() 629 struct xfs_inode *ip; in xfs_iget_cache_miss() [all …]
|
| H A D | xfs_reflink.c | 229 struct xfs_inode *ip, in xfs_reflink_trim_around_shared() 281 struct xfs_inode *ip, in xfs_bmap_trim_cow() 298 struct xfs_inode *ip, in xfs_reflink_convert_cow_locked() 337 struct xfs_inode *ip, in xfs_reflink_convert_cow() 362 struct xfs_inode *ip, in xfs_find_trim_cow_extent() 400 struct xfs_inode *ip, in xfs_reflink_convert_unwritten() 433 struct xfs_inode *ip, in xfs_reflink_fill_cow_hole() 517 struct xfs_inode *ip, in xfs_reflink_fill_delalloc() 600 struct xfs_inode *ip, in xfs_reflink_allocate_cow() 658 struct xfs_inode *ip, in xfs_reflink_cancel_cow_blocks() [all …]
|
| H A D | xfs_exchrange.h | 46 void xfs_exchrange_ilock(struct xfs_trans *tp, struct xfs_inode *ip1, 47 struct xfs_inode *ip2); 48 void xfs_exchrange_iunlock(struct xfs_inode *ip1, struct xfs_inode *ip2);
|
| H A D | xfs_file.c | 49 struct xfs_inode *ip, in xfs_is_falloc_aligned() 75 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync() 103 struct xfs_inode *ip, in xfs_fsync_flush_log() 131 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_file_fsync() 177 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_ilock_iocb() 195 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_ilock_iocb_for_write() 240 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_file_dio_read() 273 struct xfs_inode *ip = XFS_I(iocb->ki_filp->f_mapping->host); in xfs_file_dax_read() 296 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_file_buffered_read() 345 struct xfs_inode *ip = XFS_I(inode); in xfs_file_splice_read() [all …]
|
| H A D | xfs_iunlink_item.h | 10 struct xfs_inode; 16 struct xfs_inode *ip; 24 int xfs_iunlink_log_inode(struct xfs_trans *tp, struct xfs_inode *ip,
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_inode_util.h | 11 uint16_t xfs_flags2diflags(struct xfs_inode *ip, unsigned int xflags); 12 uint64_t xfs_flags2diflags2(struct xfs_inode *ip, unsigned int xflags); 13 uint32_t xfs_dic2xflags(struct xfs_inode *ip); 14 uint32_t xfs_ip2xflags(struct xfs_inode *ip); 16 prid_t xfs_get_initial_prid(struct xfs_inode *dp); 31 struct xfs_inode *pip; /* parent inode or null */ 48 void xfs_trans_ichgtime(struct xfs_trans *tp, struct xfs_inode *ip, int flags); 51 struct xfs_inode *ip); 54 struct xfs_inode *ip, struct xfs_icluster *xic); 56 int xfs_iunlink(struct xfs_trans *tp, struct xfs_inode *ip); [all …]
|
| H A D | xfs_inode_fork.h | 161 void xfs_ifork_zap_attr(struct xfs_inode *ip); 162 void xfs_ifork_init_attr(struct xfs_inode *ip, enum xfs_dinode_fmt format, 164 struct xfs_ifork *xfs_iext_state_to_fork(struct xfs_inode *ip, int state); 166 int xfs_iformat_data_fork(struct xfs_inode *, struct xfs_dinode *); 167 int xfs_iformat_attr_fork(struct xfs_inode *, struct xfs_dinode *); 168 void xfs_iflush_fork(struct xfs_inode *, struct xfs_dinode *, 171 void * xfs_idata_realloc(struct xfs_inode *ip, int64_t byte_diff, 178 int xfs_iread_extents(struct xfs_trans *, struct xfs_inode *, int); 179 int xfs_iextents_copy(struct xfs_inode *, struct xfs_bmbt_rec *, 181 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork, [all …]
|
| H A D | xfs_dir2.h | 13 struct xfs_inode; 61 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp, 62 struct xfs_inode *pdp); 63 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp, 66 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp, 69 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp, 72 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp, 75 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp, 312 const struct xfs_inode *dp; 313 const struct xfs_inode *ip; [all …]
|
| H A D | xfs_metafile.h | 22 void xfs_metafile_set_iflag(struct xfs_trans *tp, struct xfs_inode *ip, 24 void xfs_metafile_clear_iflag(struct xfs_trans *tp, struct xfs_inode *ip); 30 void xfs_metafile_resv_alloc_space(struct xfs_inode *ip, 32 void xfs_metafile_resv_free_space(struct xfs_inode *ip, struct xfs_trans *tp, 40 enum xfs_metafile_type metafile_type, struct xfs_inode **ipp); 42 enum xfs_metafile_type metafile_type, struct xfs_inode **ipp);
|
| H A D | xfs_parent.c | 154 struct xfs_inode *child, in xfs_parent_da_args_init() 176 struct xfs_inode *child) in xfs_parent_iread_extents() 192 struct xfs_inode *dp, in xfs_parent_addname() 194 struct xfs_inode *child) in xfs_parent_addname() 218 struct xfs_inode *dp, in xfs_parent_removename() 220 struct xfs_inode *child) in xfs_parent_removename() 240 struct xfs_inode *old_dp, in xfs_parent_replacename() 242 struct xfs_inode *new_dp, in xfs_parent_replacename() 244 struct xfs_inode *child) in xfs_parent_replacename() 316 struct xfs_inode *ip, in xfs_parent_lookup() [all …]
|
| H A D | xfs_dir2_priv.h | 53 int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp, 73 extern void xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp); 78 extern xfs_failaddr_t __xfs_dir3_data_check(struct xfs_inode *dp, 80 int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp, 83 int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno, 98 int xfs_dir3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp, 100 int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, 139 extern xfs_dahash_t xfs_dir2_leaf_lasthash(struct xfs_inode *dp, 144 extern int xfs_dir2_leafn_order(struct xfs_inode *dp, struct xfs_buf *leaf1_bp, 158 int xfs_dir2_free_read(struct xfs_trans *tp, struct xfs_inode *dp, [all …]
|
| H A D | xfs_attr.h | 9 struct xfs_inode; 56 struct xfs_inode *dp; /* inode */ 547 int xfs_attr_inactive(struct xfs_inode *dp); 550 int xfs_inode_hasattr(struct xfs_inode *ip); 551 bool xfs_attr_is_leaf(struct xfs_inode *ip); 577 const struct xfs_inode *ip) in xfs_attr_is_shortform() 650 int xfs_attr_sf_totsize(struct xfs_inode *dp); 651 int xfs_attr_add_fork(struct xfs_inode *ip, int size, int rsvd);
|
| H A D | xfs_da_btree.h | 10 struct xfs_inode; 61 struct xfs_inode *dp; /* directory inode to manipulate */ 187 void xfs_attr3_node_entry_remove(struct xfs_trans *tp, struct xfs_inode *dp, 201 int xfs_da3_node_read(struct xfs_trans *tp, struct xfs_inode *dp, 203 int xfs_da3_node_read_mapped(struct xfs_trans *tp, struct xfs_inode *dp, 216 int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp, 218 int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp, 221 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
| H A D | xfs_attr_leaf.h | 15 struct xfs_inode; 55 int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp); 56 int xfs_attr_shortform_bytesfit(struct xfs_inode *dp, int bytes); 59 void xfs_attr_fork_remove(struct xfs_inode *ip, struct xfs_trans *tp); 91 int xfs_attr3_leaf_init(struct xfs_trans *tp, struct xfs_inode *dp, 104 int xfs_attr3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
|
| H A D | xfs_dquot_buf.c | 356 struct xfs_inode *dp, in xfs_dqinode_load() 358 struct xfs_inode **ipp) in xfs_dqinode_load() 361 struct xfs_inode *ip; in xfs_dqinode_load() 429 struct xfs_inode *dp, in xfs_dqinode_metadir_create() 431 struct xfs_inode **ipp) in xfs_dqinode_metadir_create() 447 struct xfs_inode *dp, in xfs_dqinode_metadir_link() 449 struct xfs_inode *ip) in xfs_dqinode_metadir_link() 477 struct xfs_inode **dpp) in xfs_dqinode_mkdir_parent() 495 struct xfs_inode **dpp) in xfs_dqinode_load_parent()
|
| /linux/fs/xfs/scrub/ |
| H A D | common.h | 47 struct xfs_inode *ip); 178 int xchk_install_live_inode(struct xfs_scrub *sc, struct xfs_inode *ip); 191 int xchk_iget(struct xfs_scrub *sc, xfs_ino_t inum, struct xfs_inode **ipp); 193 struct xfs_buf **agi_bpp, struct xfs_inode **ipp); 194 void xchk_irele(struct xfs_scrub *sc, struct xfs_inode *ip); 195 int xchk_install_handle_inode(struct xfs_scrub *sc, struct xfs_inode *ip); 203 xchk_iget_safe(struct xfs_scrub *sc, xfs_ino_t inum, struct xfs_inode **ipp) in xchk_iget_safe() 227 bool xchk_dir_looks_zapped(struct xfs_inode *dp); 228 bool xchk_pptr_looks_zapped(struct xfs_inode *ip); 271 bool xchk_inode_is_dirtree_root(const struct xfs_inode *ip); [all …]
|