Home
last modified time | relevance | path

Searched refs:xfs_inode (Results 1 – 25 of 113) sorted by relevance

12345

/Linux-v5.10/fs/xfs/
Dxfs_inode.h16 struct xfs_inode;
24 typedef struct xfs_inode { struct
70 static inline struct xfs_inode *XFS_I(struct inode *inode) in XFS_I() argument
72 return container_of(inode, struct xfs_inode, i_vnode); in XFS_I()
76 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I()
86 static inline xfs_fsize_t XFS_ISIZE(struct xfs_inode *ip) in XFS_ISIZE()
98 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof()
175 xfs_get_initial_prid(struct xfs_inode *dp) in xfs_get_initial_prid()
183 static inline bool xfs_is_reflink_inode(struct xfs_inode *ip) in xfs_is_reflink_inode()
192 static inline bool xfs_inode_has_cow_data(struct xfs_inode *ip) in xfs_inode_has_cow_data()
[all …]
Dxfs_bmap_util.h14 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 …]
Dxfs_reflink.h9 static inline bool xfs_is_always_cow_inode(struct xfs_inode *ip) in xfs_is_always_cow_inode()
15 static inline bool xfs_is_cow_inode(struct xfs_inode *ip) in xfs_is_cow_inode()
23 extern int xfs_reflink_trim_around_shared(struct xfs_inode *ip,
25 int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap,
28 int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap,
31 extern int xfs_reflink_convert_cow(struct xfs_inode *ip, xfs_off_t offset,
34 extern int xfs_reflink_cancel_cow_blocks(struct xfs_inode *ip,
37 extern int xfs_reflink_cancel_cow_range(struct xfs_inode *ip, xfs_off_t offset,
39 extern int xfs_reflink_end_cow(struct xfs_inode *ip, xfs_off_t offset,
46 struct xfs_inode *ip, bool *has_shared);
[all …]
Dxfs_icache.h46 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_set_reclaim_tag(struct xfs_inode *ip);
57 void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip);
58 void xfs_inode_clear_eofblocks_tag(struct xfs_inode *ip);
60 int xfs_inode_free_quota_eofblocks(struct xfs_inode *ip);
64 void xfs_inode_set_cowblocks_tag(struct xfs_inode *ip);
65 void xfs_inode_clear_cowblocks_tag(struct xfs_inode *ip);
67 int xfs_inode_free_quota_cowblocks(struct xfs_inode *ip);
72 int (*execute)(struct xfs_inode *ip, void *args),
Dxfs_quota.h80 extern void xfs_trans_mod_dquot_byino(struct xfs_trans *, struct xfs_inode *,
85 struct xfs_inode *, int64_t, long, uint);
90 extern int xfs_qm_vop_dqalloc(struct xfs_inode *, kuid_t, kgid_t,
93 extern void xfs_qm_vop_create_dqattach(struct xfs_trans *, struct xfs_inode *,
95 extern int xfs_qm_vop_rename_dqattach(struct xfs_inode **);
97 struct xfs_inode *, struct xfs_dquot **, struct xfs_dquot *);
98 extern int xfs_qm_vop_chown_reserve(struct xfs_trans *, struct xfs_inode *,
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 *);
[all …]
Dxfs_inode_item.h13 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 *);
Dxfs_symlink.h10 int xfs_symlink(struct xfs_inode *dp, struct xfs_name *link_name,
11 const char *target_path, umode_t mode, struct xfs_inode **ipp);
12 int xfs_readlink_bmap_ilocked(struct xfs_inode *ip, char *link);
13 int xfs_readlink(struct xfs_inode *ip, char *link);
14 int xfs_inactive_symlink(struct xfs_inode *ip);
Dxfs_iomap.h11 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 *,
Dxfs_filestream.h10 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()
Dxfs_icache.c32 struct xfs_inode *
37 struct xfs_inode *ip; in xfs_inode_alloc()
81 struct xfs_inode *ip = XFS_I(inode); in xfs_inode_free_callback()
111 struct xfs_inode *ip) in __xfs_inode_free()
123 struct xfs_inode *ip) in xfs_inode_free()
206 struct xfs_inode *ip) in xfs_inode_set_reclaim_tag()
238 struct xfs_inode *ip) in xfs_inew_wait()
298 struct xfs_inode *ip, in xfs_iget_check_free_state()
332 struct xfs_inode *ip, in xfs_iget_cache_hit()
477 struct xfs_inode **ipp, in xfs_iget_cache_miss()
[all …]
Dxfs_inode.c47 STATIC int xfs_iunlink(struct xfs_trans *, struct xfs_inode *);
48 STATIC int xfs_iunlink_remove(struct xfs_trans *, struct xfs_inode *);
55 struct xfs_inode *ip) in xfs_get_extsz_hint()
78 struct xfs_inode *ip) in xfs_get_cowextsz_hint()
110 struct xfs_inode *ip) in xfs_ilock_data_map_shared()
123 struct xfs_inode *ip) in xfs_ilock_attr_map_shared()
444 struct xfs_inode **ips, in xfs_lock_inodes()
546 struct xfs_inode *ip0, in xfs_lock_two_inodes()
548 struct xfs_inode *ip1, in xfs_lock_two_inodes()
551 struct xfs_inode *temp; in xfs_lock_two_inodes()
[all …]
Dxfs_aops.c74 struct xfs_inode *ip, in __xfs_setfilesize()
100 struct xfs_inode *ip, in xfs_setfilesize()
120 struct xfs_inode *ip = XFS_I(ioend->io_inode); in xfs_setfilesize_ioend()
147 struct xfs_inode *ip = XFS_I(ioend->io_inode); in xfs_end_ioend()
219 struct xfs_inode *ip = in xfs_end_io()
220 container_of(work, struct xfs_inode, i_ioend_work); in xfs_end_io()
250 struct xfs_inode *ip = XFS_I(ioend->io_inode); in xfs_end_bio()
270 struct xfs_inode *ip, in xfs_imap_valid()
310 struct xfs_inode *ip, in xfs_convert_blocks()
344 struct xfs_inode *ip = XFS_I(inode); in xfs_map_blocks()
[all …]
Dxfs_reflink.c170 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()
458 struct xfs_inode *ip, in xfs_reflink_cancel_cow_blocks()
539 struct xfs_inode *ip, in xfs_reflink_cancel_cow_range()
598 struct xfs_inode *ip, in xfs_reflink_end_cow_extent()
706 struct xfs_inode *ip, in xfs_reflink_end_cow()
[all …]
Dxfs_iops.h9 struct xfs_inode;
21 extern void xfs_setattr_time(struct xfs_inode *ip, struct iattr *iattr);
22 extern int xfs_setattr_nonsize(struct xfs_inode *ip, struct iattr *vap,
Dxfs_qm.h12 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 *
Dxfs_inode_item.c37 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_data_fork_size()
78 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_attr_fork_size()
124 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_size()
142 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_data_fork()
227 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_attr_fork()
304 struct xfs_inode *ip, in xfs_inode_to_log_dinode_ts()
322 struct xfs_inode *ip, in xfs_inode_to_log_dinode()
383 struct xfs_inode *ip, in xfs_inode_item_format_core()
412 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format()
457 struct xfs_inode *ip = INODE_ITEM(lip)->ili_inode; in xfs_inode_item_pin()
[all …]
/Linux-v5.10/fs/xfs/libxfs/
Dxfs_bmap.h12 struct xfs_inode;
23 struct xfs_inode *ip; /* incore inode pointer */
188 int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd);
189 int xfs_bmap_set_attrforkoff(struct xfs_inode *ip, int size, int *version);
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_bmap_one_block(struct xfs_inode *ip, int whichfork);
203 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno,
[all …]
Dxfs_inode_fork.h83 struct xfs_ifork *xfs_iext_state_to_fork(struct xfs_inode *ip, int state);
85 int xfs_iformat_data_fork(struct xfs_inode *, struct xfs_dinode *);
86 int xfs_iformat_attr_fork(struct xfs_inode *, struct xfs_dinode *);
87 void xfs_iflush_fork(struct xfs_inode *, struct xfs_dinode *,
90 void xfs_idata_realloc(struct xfs_inode *ip, int64_t byte_diff,
92 void xfs_iroot_realloc(struct xfs_inode *, int, int);
93 int xfs_iread_extents(struct xfs_trans *, struct xfs_inode *, int);
94 int xfs_iextents_copy(struct xfs_inode *, struct xfs_bmbt_rec *,
96 void xfs_init_local_fork(struct xfs_inode *ip, int whichfork,
100 void xfs_iext_insert(struct xfs_inode *, struct xfs_iext_cursor *cur,
[all …]
Dxfs_dir2.h13 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 bool xfs_dir2_sf_replace_needblock(struct xfs_inode *dp,
52 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp,
55 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
Dxfs_dir2_priv.h53 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,
137 extern xfs_dahash_t xfs_dir2_leaf_lasthash(struct xfs_inode *dp,
142 extern int xfs_dir2_leafn_order(struct xfs_inode *dp, struct xfs_buf *leaf1_bp,
156 extern int xfs_dir2_free_read(struct xfs_trans *tp, struct xfs_inode *dp,
[all …]
Dxfs_health.h36 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);
Dxfs_attr_leaf.h15 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,
Dxfs_da_btree.h10 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,
Dxfs_attr.h9 struct xfs_inode;
55 struct xfs_inode *dp; /* inode */
84 int xfs_attr_inactive(struct xfs_inode *dp);
87 int xfs_inode_hasattr(struct xfs_inode *ip);
/Linux-v5.10/fs/xfs/scrub/
Dcommon.h75 int xchk_setup_fs(struct xfs_scrub *sc, struct xfs_inode *ip);
77 struct xfs_inode *ip);
79 struct xfs_inode *ip);
81 struct xfs_inode *ip);
83 struct xfs_inode *ip);
85 struct xfs_inode *ip);
87 struct xfs_inode *ip);
89 struct xfs_inode *ip);
91 struct xfs_inode *ip);
93 struct xfs_inode *ip);
[all …]

12345