/linux-6.6.21/fs/xfs/ |
D | xfs_inode.h | 16 struct xfs_inode; 24 typedef struct xfs_inode { struct 97 static inline bool xfs_inode_on_unlinked_list(const struct xfs_inode *ip) in xfs_inode_on_unlinked_list() argument 102 static inline bool xfs_inode_has_attr_fork(struct xfs_inode *ip) in xfs_inode_has_attr_fork() 109 struct xfs_inode *ip, in xfs_ifork_ptr() 127 static inline unsigned int xfs_inode_fork_boff(struct xfs_inode *ip) in xfs_inode_fork_boff() 132 static inline unsigned int xfs_inode_data_fork_size(struct xfs_inode *ip) in xfs_inode_data_fork_size() 140 static inline unsigned int xfs_inode_attr_fork_size(struct xfs_inode *ip) in xfs_inode_attr_fork_size() 149 struct xfs_inode *ip, in xfs_inode_fork_size() 163 static inline struct xfs_inode *XFS_I(struct inode *inode) in XFS_I() [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() 19 extern int xfs_reflink_trim_around_shared(struct xfs_inode *ip, 21 int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 24 int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 27 extern int xfs_reflink_convert_cow(struct xfs_inode *ip, xfs_off_t offset, 30 extern int xfs_reflink_cancel_cow_blocks(struct xfs_inode *ip, 33 extern int xfs_reflink_cancel_cow_range(struct xfs_inode *ip, xfs_off_t offset, 35 extern int xfs_reflink_end_cow(struct xfs_inode *ip, xfs_off_t offset, 42 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 */ 40 static inline int xfs_inode_clean(struct xfs_inode *ip) in xfs_inode_clean() 45 extern void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *); 46 extern void xfs_inode_item_destroy(struct xfs_inode *); 47 extern void xfs_iflush_abort(struct xfs_inode *); 48 extern void xfs_iflush_shutdown_abort(struct xfs_inode *);
|
D | xfs_iomap.h | 11 struct xfs_inode; 14 int xfs_iomap_write_direct(struct xfs_inode *ip, xfs_fileoff_t offset_fsb, 17 int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t, bool); 18 xfs_fileoff_t xfs_iomap_eof_align_last_fsb(struct xfs_inode *ip, 21 u64 xfs_iomap_inode_sequence(struct xfs_inode *ip, u16 iomap_flags); 22 int xfs_bmbt_to_iomap(struct xfs_inode *ip, struct iomap *iomap, 26 int xfs_zero_range(struct xfs_inode *ip, loff_t pos, loff_t len, 28 int xfs_truncate_page(struct xfs_inode *ip, loff_t pos, bool *did_zero);
|
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);
|
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_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_inode.c | 49 STATIC int xfs_iunlink(struct xfs_trans *, struct xfs_inode *); 51 struct xfs_inode *); 58 struct xfs_inode *ip) in xfs_get_extsz_hint() 81 struct xfs_inode *ip) in xfs_get_cowextsz_hint() 113 struct xfs_inode *ip) in xfs_ilock_data_map_shared() 125 struct xfs_inode *ip) in xfs_ilock_attr_map_shared() 359 struct xfs_inode *ip, in xfs_isilocked() 452 struct xfs_inode **ips, in xfs_lock_inodes() 553 struct xfs_inode *ip0, in xfs_lock_two_inodes() 555 struct xfs_inode *ip1, in xfs_lock_two_inodes() [all …]
|
D | xfs_icache.c | 70 struct xfs_inode * 75 struct xfs_inode *ip; in xfs_inode_alloc() 126 struct xfs_inode *ip = XFS_I(inode); in xfs_inode_free_callback() 154 struct xfs_inode *ip) in __xfs_inode_free() 166 struct xfs_inode *ip) in xfs_inode_free() 337 struct xfs_inode *ip) __releases(&ip->i_flags_lock) in xfs_iget_recycle() 409 struct xfs_inode *ip, in xfs_iget_check_free_state() 484 struct xfs_inode *ip, in xfs_iget_cache_hit() 602 struct xfs_inode **ipp, in xfs_iget_cache_miss() 606 struct xfs_inode *ip; in xfs_iget_cache_miss() [all …]
|
D | xfs_trans.h | 16 struct xfs_inode; 228 void xfs_trans_ichgtime(struct xfs_trans *, struct xfs_inode *, int); 229 void xfs_trans_ijoin(struct xfs_trans *, struct xfs_inode *, uint); 234 void xfs_trans_log_inode(xfs_trans_t *, struct xfs_inode *, uint); 238 int xfs_trans_roll_inode(struct xfs_trans **, struct xfs_inode *); 260 int xfs_trans_alloc_inode(struct xfs_inode *ip, struct xfs_trans_res *resv, 267 int xfs_trans_alloc_ichange(struct xfs_inode *ip, struct xfs_dquot *udqp, 270 int xfs_trans_alloc_dir(struct xfs_inode *dp, struct xfs_trans_res *resv, 271 struct xfs_inode *ip, unsigned int *dblocks,
|
D | xfs_file.c | 43 struct xfs_inode *ip, in xfs_is_falloc_aligned() 83 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync() 91 struct xfs_inode *ip, in xfs_fsync_seq() 116 struct xfs_inode *ip, in xfs_fsync_flush_log() 144 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_file_fsync() 205 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_ilock_iocb() 223 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_ilock_iocb_for_write() 241 struct xfs_inode *ip) in xfs_ilock_for_write_fault() 259 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_file_dio_read() 283 struct xfs_inode *ip = XFS_I(iocb->ki_filp->f_mapping->host); in xfs_file_dax_read() [all …]
|
D | xfs_reflink.c | 169 struct xfs_inode *ip, in xfs_reflink_trim_around_shared() 229 struct xfs_inode *ip, in xfs_bmap_trim_cow() 246 struct xfs_inode *ip, in xfs_reflink_convert_cow_locked() 285 struct xfs_inode *ip, in xfs_reflink_convert_cow() 310 struct xfs_inode *ip, in xfs_find_trim_cow_extent() 348 struct xfs_inode *ip, in xfs_reflink_convert_unwritten() 381 struct xfs_inode *ip, in xfs_reflink_fill_cow_hole() 449 struct xfs_inode *ip, in xfs_reflink_fill_delalloc() 520 struct xfs_inode *ip, in xfs_reflink_allocate_cow() 578 struct xfs_inode *ip, in xfs_reflink_cancel_cow_blocks() [all …]
|
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,
|
D | xfs_inode_item.c | 75 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_precommit() 199 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_data_fork_size() 240 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_attr_fork_size() 286 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_size() 304 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_data_fork() 384 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_attr_fork() 455 struct xfs_inode *ip, in xfs_inode_to_log_dinode_ts() 481 struct xfs_inode *ip, in xfs_copy_dm_fields_to_log_dinode() 500 struct xfs_inode *ip, in xfs_inode_to_log_dinode_iext_counters() 515 struct xfs_inode *ip, in xfs_inode_to_log_dinode() [all …]
|
D | xfs_qm.h | 12 struct xfs_inode; 55 struct xfs_inode *qi_uquotaip; /* user quota inode */ 56 struct xfs_inode *qi_gquotaip; /* group quota inode */ 57 struct xfs_inode *qi_pquotaip; /* project quota inode */ 91 static inline struct xfs_inode *
|
/linux-6.6.21/fs/xfs/libxfs/ |
D | xfs_bmap.h | 12 struct xfs_inode; 22 struct xfs_inode *ip; /* incore inode pointer */ 177 int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd); 179 struct xfs_inode *ip, int whichfork); 181 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, 183 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip, 185 int xfs_bmap_last_offset(struct xfs_inode *ip, xfs_fileoff_t *unused, 187 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 190 int xfs_bmapi_write(struct xfs_trans *tp, struct xfs_inode *ip, 193 int __xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip, [all …]
|
D | xfs_inode_fork.h | 163 void xfs_ifork_zap_attr(struct xfs_inode *ip); 164 void xfs_ifork_init_attr(struct xfs_inode *ip, enum xfs_dinode_fmt format, 166 struct xfs_ifork *xfs_iext_state_to_fork(struct xfs_inode *ip, int state); 168 int xfs_iformat_data_fork(struct xfs_inode *, struct xfs_dinode *); 169 int xfs_iformat_attr_fork(struct xfs_inode *, struct xfs_dinode *); 170 void xfs_iflush_fork(struct xfs_inode *, struct xfs_dinode *, 173 void xfs_idata_realloc(struct xfs_inode *ip, int64_t byte_diff, 175 void xfs_iroot_realloc(struct xfs_inode *, int, int); 176 int xfs_iread_extents(struct xfs_trans *, struct xfs_inode *, int); 177 int xfs_iextents_copy(struct xfs_inode *, struct xfs_bmbt_rec *, [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; 57 int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp); 58 int xfs_attr_shortform_bytesfit(struct xfs_inode *dp, int bytes); 59 xfs_failaddr_t xfs_attr_shortform_verify(struct xfs_inode *ip); 60 void xfs_attr_fork_remove(struct xfs_inode *ip, struct xfs_trans *tp); 102 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 */ 540 int xfs_attr_inactive(struct xfs_inode *dp); 543 int xfs_inode_hasattr(struct xfs_inode *ip); 544 bool xfs_attr_is_leaf(struct xfs_inode *ip); 561 struct xfs_inode *ip) in xfs_attr_is_shortform()
|
D | xfs_da_btree.h | 10 struct xfs_inode; 66 struct xfs_inode *dp; /* directory inode to manipulate */ 197 int xfs_da3_node_read(struct xfs_trans *tp, struct xfs_inode *dp, 199 int xfs_da3_node_read_mapped(struct xfs_trans *tp, struct xfs_inode *dp, 212 int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp, 214 int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp, 217 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
D | xfs_inode_fork.c | 33 struct xfs_inode *ip, in xfs_init_local_fork() 69 struct xfs_inode *ip, in xfs_iformat_local() 100 struct xfs_inode *ip, in xfs_iformat_extents() 165 struct xfs_inode *ip, in xfs_iformat_btree() 222 struct xfs_inode *ip, in xfs_iformat_data_fork() 287 struct xfs_inode *ip, in xfs_ifork_init_attr() 306 struct xfs_inode *ip) in xfs_ifork_zap_attr() 315 struct xfs_inode *ip, in xfs_iformat_attr_fork() 498 struct xfs_inode *ip, in xfs_idata_realloc() 556 struct xfs_inode *ip, in xfs_iextents_copy() [all …]
|