/Linux-v5.15/fs/xfs/ |
D | xfs_inode.h | 16 struct xfs_inode; 24 typedef struct xfs_inode { struct 81 static inline struct xfs_inode *XFS_I(struct inode *inode) in XFS_I() argument 83 return container_of(inode, struct xfs_inode, i_vnode); in XFS_I() 87 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I() 97 static inline xfs_fsize_t XFS_ISIZE(struct xfs_inode *ip) in XFS_ISIZE() 109 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() 186 xfs_get_initial_prid(struct xfs_inode *dp) in xfs_get_initial_prid() 194 static inline bool xfs_is_reflink_inode(struct xfs_inode *ip) in xfs_is_reflink_inode() 199 static inline bool xfs_is_metadata_inode(struct xfs_inode *ip) in xfs_is_metadata_inode() [all …]
|
D | xfs_bmap_util.h | 14 struct xfs_inode; 33 int xfs_bmap_punch_delalloc_range(struct xfs_inode *ip, 42 int xfs_getbmap(struct xfs_inode *ip, struct getbmapx *bmv, 51 int xfs_bmap_last_extent(struct xfs_trans *tp, struct xfs_inode *ip, 56 int xfs_alloc_file_space(struct xfs_inode *ip, xfs_off_t offset, 58 int xfs_free_file_space(struct xfs_inode *ip, xfs_off_t offset, 60 int xfs_collapse_file_space(struct xfs_inode *, xfs_off_t offset, 62 int xfs_insert_file_space(struct xfs_inode *, xfs_off_t offset, 66 bool xfs_can_free_eofblocks(struct xfs_inode *ip, bool force); 67 int xfs_free_eofblocks(struct xfs_inode *ip); [all …]
|
D | xfs_reflink.h | 9 static inline bool xfs_is_always_cow_inode(struct xfs_inode *ip) in xfs_is_always_cow_inode() 14 static inline bool xfs_is_cow_inode(struct xfs_inode *ip) in xfs_is_cow_inode() 22 extern int xfs_reflink_trim_around_shared(struct xfs_inode *ip, 24 int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 27 int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 30 extern int xfs_reflink_convert_cow(struct xfs_inode *ip, xfs_off_t offset, 33 extern int xfs_reflink_cancel_cow_blocks(struct xfs_inode *ip, 36 extern int xfs_reflink_cancel_cow_range(struct xfs_inode *ip, xfs_off_t offset, 38 extern int xfs_reflink_end_cow(struct xfs_inode *ip, xfs_off_t offset, 45 struct xfs_inode *ip, bool *has_shared); [all …]
|
D | xfs_quota.h | 80 extern void xfs_trans_mod_dquot_byino(struct xfs_trans *, struct xfs_inode *, 84 int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp, struct xfs_inode *ip, 93 extern int xfs_qm_vop_dqalloc(struct xfs_inode *, kuid_t, kgid_t, 96 extern void xfs_qm_vop_create_dqattach(struct xfs_trans *, struct xfs_inode *, 98 extern int xfs_qm_vop_rename_dqattach(struct xfs_inode **); 100 struct xfs_inode *, struct xfs_dquot **, struct xfs_dquot *); 101 extern int xfs_qm_dqattach(struct xfs_inode *); 102 extern int xfs_qm_dqattach_locked(struct xfs_inode *ip, bool doalloc); 103 extern void xfs_qm_dqdetach(struct xfs_inode *); 105 extern void xfs_qm_statvfs(struct xfs_inode *, struct kstatfs *); [all …]
|
D | xfs_inode_item.h | 13 struct xfs_inode; 18 struct xfs_inode *ili_inode; /* inode ptr */ 39 static inline int xfs_inode_clean(struct xfs_inode *ip) in xfs_inode_clean() 44 extern void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *); 45 extern void xfs_inode_item_destroy(struct xfs_inode *); 46 extern void xfs_iflush_abort(struct xfs_inode *);
|
D | xfs_icache.h | 46 struct xfs_inode * xfs_inode_alloc(struct xfs_mount *mp, xfs_ino_t ino); 47 void xfs_inode_free(struct xfs_inode *ip); 55 void xfs_inode_mark_reclaimable(struct xfs_inode *ip); 60 int xfs_blockgc_free_quota(struct xfs_inode *ip, unsigned int iwalk_flags); 64 void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip); 65 void xfs_inode_clear_eofblocks_tag(struct xfs_inode *ip); 67 void xfs_inode_set_cowblocks_tag(struct xfs_inode *ip); 68 void xfs_inode_clear_cowblocks_tag(struct xfs_inode *ip);
|
D | xfs_symlink.h | 10 int xfs_symlink(struct user_namespace *mnt_userns, struct xfs_inode *dp, 12 umode_t mode, struct xfs_inode **ipp); 13 int xfs_readlink_bmap_ilocked(struct xfs_inode *ip, char *link); 14 int xfs_readlink(struct xfs_inode *ip, char *link); 15 int xfs_inactive_symlink(struct xfs_inode *ip);
|
D | xfs_iomap.h | 11 struct xfs_inode; 14 int xfs_iomap_write_direct(struct xfs_inode *ip, xfs_fileoff_t offset_fsb, 16 int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t, bool); 17 xfs_fileoff_t xfs_iomap_eof_align_last_fsb(struct xfs_inode *ip, 20 int xfs_bmbt_to_iomap(struct xfs_inode *, struct iomap *,
|
D | xfs_icache.c | 69 struct xfs_inode * 74 struct xfs_inode *ip; in xfs_inode_alloc() 121 struct xfs_inode *ip = XFS_I(inode); in xfs_inode_free_callback() 151 struct xfs_inode *ip) in __xfs_inode_free() 163 struct xfs_inode *ip) in xfs_inode_free() 294 struct xfs_inode *ip) in xfs_inew_wait() 349 struct xfs_inode *ip) __releases(&ip->i_flags_lock) in xfs_iget_recycle() 422 struct xfs_inode *ip, in xfs_iget_check_free_state() 471 struct xfs_inode *ip, in xfs_iget_cache_hit() 587 struct xfs_inode **ipp, in xfs_iget_cache_miss() [all …]
|
D | xfs_filestream.h | 10 struct xfs_inode; 15 void xfs_filestream_deassociate(struct xfs_inode *ip); 16 xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip); 22 struct xfs_inode *ip) in xfs_inode_is_filestream()
|
D | xfs_inode.c | 47 STATIC int xfs_iunlink(struct xfs_trans *, struct xfs_inode *); 49 struct xfs_inode *); 56 struct xfs_inode *ip) in xfs_get_extsz_hint() 79 struct xfs_inode *ip) in xfs_get_cowextsz_hint() 111 struct xfs_inode *ip) in xfs_ilock_data_map_shared() 123 struct xfs_inode *ip) in xfs_ilock_attr_map_shared() 371 struct xfs_inode *ip, in xfs_isilocked() 462 struct xfs_inode **ips, in xfs_lock_inodes() 562 struct xfs_inode *ip0, in xfs_lock_two_inodes() 564 struct xfs_inode *ip1, in xfs_lock_two_inodes() [all …]
|
D | xfs_reflink.c | 170 struct xfs_inode *ip, in xfs_reflink_trim_around_shared() 226 struct xfs_inode *ip, in xfs_bmap_trim_cow() 243 struct xfs_inode *ip, in xfs_reflink_convert_cow_locked() 282 struct xfs_inode *ip, in xfs_reflink_convert_cow() 307 struct xfs_inode *ip, in xfs_find_trim_cow_extent() 346 struct xfs_inode *ip, in xfs_reflink_allocate_cow() 446 struct xfs_inode *ip, in xfs_reflink_cancel_cow_blocks() 526 struct xfs_inode *ip, in xfs_reflink_cancel_cow_range() 585 struct xfs_inode *ip, in xfs_reflink_end_cow_extent() 698 struct xfs_inode *ip, in xfs_reflink_end_cow() [all …]
|
D | xfs_file.c | 42 struct xfs_inode *ip, in xfs_is_falloc_aligned() 71 struct xfs_inode *ip, in xfs_update_prealloc_flags() 116 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync() 124 struct xfs_inode *ip, in xfs_fsync_seq() 149 struct xfs_inode *ip, in xfs_fsync_flush_log() 177 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_file_fsync() 232 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_ilock_iocb() 249 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() [all …]
|
D | xfs_qm.h | 12 struct xfs_inode; 56 struct xfs_inode *qi_uquotaip; /* user quota inode */ 57 struct xfs_inode *qi_gquotaip; /* group quota inode */ 58 struct xfs_inode *qi_pquotaip; /* project quota inode */ 92 static inline struct xfs_inode *
|
D | xfs_inode_item.c | 51 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_data_fork_size() 92 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_attr_fork_size() 138 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_size() 156 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_data_fork() 241 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_attr_fork() 318 struct xfs_inode *ip, in xfs_inode_to_log_dinode_ts() 344 struct xfs_inode *ip, in xfs_copy_dm_fields_to_log_dinode() 363 struct xfs_inode *ip, in xfs_inode_to_log_dinode() 423 struct xfs_inode *ip, in xfs_inode_item_format_core() 452 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format() [all …]
|
D | xfs_aops.c | 47 struct xfs_inode *ip, in xfs_setfilesize() 84 struct xfs_inode *ip = XFS_I(ioend->io_inode); in xfs_end_ioend() 135 struct xfs_inode *ip = in xfs_end_io() 136 container_of(work, struct xfs_inode, i_ioend_work); in xfs_end_io() 159 struct xfs_inode *ip = XFS_I(ioend->io_inode); in xfs_end_bio() 177 struct xfs_inode *ip, in xfs_imap_valid() 217 struct xfs_inode *ip, in xfs_convert_blocks() 251 struct xfs_inode *ip = XFS_I(inode); in xfs_map_blocks() 436 struct xfs_inode *ip = XFS_I(inode); in xfs_discard_page() 487 struct xfs_inode *ip = XFS_I(mapping->host); in xfs_dax_writepages() [all …]
|
D | xfs_bmap_util.c | 40 xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb) in xfs_fsb_to_db() 56 struct xfs_inode *ip, in xfs_zero_extent() 253 struct xfs_inode *ip, in xfs_bmap_count_blocks() 300 struct xfs_inode *ip, in xfs_getbmap_report_one() 351 struct xfs_inode *ip, in xfs_getbmap_report_hole() 406 struct xfs_inode *ip, in xfs_getbmap() 591 struct xfs_inode *ip, in xfs_bmap_punch_delalloc_range() 641 struct xfs_inode *ip, in xfs_can_free_eofblocks() 718 struct xfs_inode *ip) in xfs_free_eofblocks() 772 struct xfs_inode *ip, in xfs_alloc_file_space() [all …]
|
/Linux-v5.15/fs/xfs/libxfs/ |
D | xfs_bmap.h | 12 struct xfs_inode; 23 struct xfs_inode *ip; /* incore inode pointer */ 189 int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd); 191 struct xfs_inode *ip, int whichfork); 196 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, 198 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip, 200 int xfs_bmap_last_offset(struct xfs_inode *ip, xfs_fileoff_t *unused, 202 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 205 int xfs_bmapi_write(struct xfs_trans *tp, struct xfs_inode *ip, 208 int __xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip, [all …]
|
D | xfs_inode_fork.h | 138 struct xfs_ifork *xfs_iext_state_to_fork(struct xfs_inode *ip, int state); 140 int xfs_iformat_data_fork(struct xfs_inode *, struct xfs_dinode *); 141 int xfs_iformat_attr_fork(struct xfs_inode *, struct xfs_dinode *); 142 void xfs_iflush_fork(struct xfs_inode *, struct xfs_dinode *, 145 void xfs_idata_realloc(struct xfs_inode *ip, int64_t byte_diff, 147 void xfs_iroot_realloc(struct xfs_inode *, int, int); 148 int xfs_iread_extents(struct xfs_trans *, struct xfs_inode *, int); 149 int xfs_iextents_copy(struct xfs_inode *, struct xfs_bmbt_rec *, 151 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork, 155 void xfs_iext_insert(struct xfs_inode *, struct xfs_iext_cursor *cur, [all …]
|
D | xfs_dir2_priv.h | 53 extern 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, 82 int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno, 97 int xfs_dir3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp, 99 int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, 138 extern xfs_dahash_t xfs_dir2_leaf_lasthash(struct xfs_inode *dp, 143 extern int xfs_dir2_leafn_order(struct xfs_inode *dp, struct xfs_buf *leaf1_bp, 157 extern int xfs_dir2_free_read(struct xfs_trans *tp, struct xfs_inode *dp, [all …]
|
D | xfs_health.h | 36 struct xfs_inode; 117 void xfs_inode_mark_sick(struct xfs_inode *ip, unsigned int mask); 118 void xfs_inode_mark_healthy(struct xfs_inode *ip, unsigned int mask); 119 void xfs_inode_measure_sickness(struct xfs_inode *ip, unsigned int *sick, 154 xfs_inode_has_sickness(struct xfs_inode *ip, unsigned int mask) in xfs_inode_has_sickness() 181 xfs_inode_is_healthy(struct xfs_inode *ip) in xfs_inode_is_healthy() 188 void xfs_bulkstat_health(struct xfs_inode *ip, struct xfs_bulkstat *bs);
|
D | xfs_dir2.h | 13 struct xfs_inode; 38 extern int xfs_dir_isempty(struct xfs_inode *dp); 39 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp, 40 struct xfs_inode *pdp); 41 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp, 44 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp, 47 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp, 50 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp, 53 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
|
D | xfs_attr_leaf.h | 15 struct xfs_inode; 58 int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp); 59 int xfs_attr_shortform_bytesfit(struct xfs_inode *dp, int bytes); 60 xfs_failaddr_t xfs_attr_shortform_verify(struct xfs_inode *ip); 61 void xfs_attr_fork_remove(struct xfs_inode *ip, struct xfs_trans *tp); 103 int xfs_attr3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
|
D | xfs_attr.h | 9 struct xfs_inode; 55 struct xfs_inode *dp; /* inode */ 484 int xfs_attr_inactive(struct xfs_inode *dp); 487 int xfs_inode_hasattr(struct xfs_inode *ip); 488 bool xfs_attr_is_leaf(struct xfs_inode *ip);
|
D | xfs_da_btree.h | 10 struct xfs_inode; 66 struct xfs_inode *dp; /* directory inode to manipulate */ 191 int xfs_da3_node_read(struct xfs_trans *tp, struct xfs_inode *dp, 193 int xfs_da3_node_read_mapped(struct xfs_trans *tp, struct xfs_inode *dp, 206 int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp, 208 int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp, 211 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|