Home
last modified time | relevance | path

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

1234

/fs/xfs/
Dxfs_inode.h28 struct xfs_inode;
37 typedef struct xfs_inode { struct
76 static inline struct xfs_inode *XFS_I(struct inode *inode) in XFS_I() argument
78 return container_of(inode, struct xfs_inode, i_vnode); in XFS_I()
82 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I()
92 static inline xfs_fsize_t XFS_ISIZE(struct xfs_inode *ip) in XFS_ISIZE()
104 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof()
186 xfs_get_projid(struct xfs_inode *ip) in xfs_get_projid()
192 xfs_set_projid(struct xfs_inode *ip, in xfs_set_projid()
200 xfs_get_initial_prid(struct xfs_inode *dp) in xfs_get_initial_prid()
[all …]
Dxfs_bmap_util.h26 struct xfs_inode;
45 int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff,
47 int xfs_bmap_punch_delalloc_range(struct xfs_inode *ip,
52 int xfs_getbmap(struct xfs_inode *ip, struct getbmapx *bmv,
61 int xfs_bmap_last_extent(struct xfs_trans *tp, struct xfs_inode *ip,
66 int xfs_alloc_file_space(struct xfs_inode *ip, xfs_off_t offset,
68 int xfs_free_file_space(struct xfs_inode *ip, xfs_off_t offset,
70 int xfs_zero_file_space(struct xfs_inode *ip, xfs_off_t offset,
72 int xfs_collapse_file_space(struct xfs_inode *, xfs_off_t offset,
74 int xfs_insert_file_space(struct xfs_inode *, xfs_off_t offset,
[all …]
Dxfs_reflink.h26 extern int xfs_reflink_trim_around_shared(struct xfs_inode *ip,
29 extern int xfs_reflink_reserve_cow(struct xfs_inode *ip,
31 extern int xfs_reflink_allocate_cow(struct xfs_inode *ip,
33 extern int xfs_reflink_convert_cow(struct xfs_inode *ip, xfs_off_t offset,
35 extern bool xfs_reflink_find_cow_mapping(struct xfs_inode *ip, xfs_off_t offset,
37 extern void xfs_reflink_trim_irec_to_next_cow(struct xfs_inode *ip,
40 extern int xfs_reflink_cancel_cow_blocks(struct xfs_inode *ip,
43 extern int xfs_reflink_cancel_cow_range(struct xfs_inode *ip, xfs_off_t offset,
45 extern int xfs_reflink_end_cow(struct xfs_inode *ip, xfs_off_t offset,
51 struct xfs_inode *ip, bool *has_shared);
[all …]
Dxfs_icache.h61 struct xfs_inode * xfs_inode_alloc(struct xfs_mount *mp, xfs_ino_t ino);
62 void xfs_inode_free(struct xfs_inode *ip);
70 void xfs_inode_set_reclaim_tag(struct xfs_inode *ip);
72 void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip);
73 void xfs_inode_clear_eofblocks_tag(struct xfs_inode *ip);
75 int xfs_inode_free_quota_eofblocks(struct xfs_inode *ip);
79 void xfs_inode_set_cowblocks_tag(struct xfs_inode *ip);
80 void xfs_inode_clear_cowblocks_tag(struct xfs_inode *ip);
82 int xfs_inode_free_quota_cowblocks(struct xfs_inode *ip);
86 int (*execute)(struct xfs_inode *ip, int flags, void *args),
[all …]
Dxfs_quota.h72 extern void xfs_trans_mod_dquot_byino(struct xfs_trans *, struct xfs_inode *,
77 struct xfs_inode *, long, long, uint);
82 extern int xfs_qm_vop_dqalloc(struct xfs_inode *, xfs_dqid_t, xfs_dqid_t,
85 extern void xfs_qm_vop_create_dqattach(struct xfs_trans *, struct xfs_inode *,
87 extern int xfs_qm_vop_rename_dqattach(struct xfs_inode **);
89 struct xfs_inode *, struct xfs_dquot **, struct xfs_dquot *);
90 extern int xfs_qm_vop_chown_reserve(struct xfs_trans *, struct xfs_inode *,
93 extern int xfs_qm_dqattach(struct xfs_inode *, uint);
94 extern int xfs_qm_dqattach_locked(struct xfs_inode *, uint);
95 extern void xfs_qm_dqdetach(struct xfs_inode *);
[all …]
Dxfs_attr.h21 struct xfs_inode;
121 struct xfs_inode *dp; /* inode */
143 int xfs_attr_inactive(struct xfs_inode *dp);
146 int xfs_inode_hasattr(struct xfs_inode *ip);
147 int xfs_attr_get_ilocked(struct xfs_inode *ip, struct xfs_da_args *args);
148 int xfs_attr_get(struct xfs_inode *ip, const unsigned char *name,
150 int xfs_attr_set(struct xfs_inode *dp, const unsigned char *name,
152 int xfs_attr_remove(struct xfs_inode *dp, const unsigned char *name, int flags);
153 int xfs_attr_list(struct xfs_inode *dp, char *buffer, int bufsize,
Dxfs_iomap.h23 struct xfs_inode;
26 int xfs_iomap_write_direct(struct xfs_inode *, xfs_off_t, size_t,
28 int xfs_iomap_write_allocate(struct xfs_inode *, int, xfs_off_t,
30 int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t, bool);
32 void xfs_bmbt_to_iomap(struct xfs_inode *, struct iomap *,
34 xfs_extlen_t xfs_eof_alignment(struct xfs_inode *ip, xfs_extlen_t extsize);
Dxfs_symlink.h22 int xfs_symlink(struct xfs_inode *dp, struct xfs_name *link_name,
23 const char *target_path, umode_t mode, struct xfs_inode **ipp);
24 int xfs_readlink_bmap_ilocked(struct xfs_inode *ip, char *link);
25 int xfs_readlink(struct xfs_inode *ip, char *link);
26 int xfs_inactive_symlink(struct xfs_inode *ip);
Dxfs_icache.c44 struct xfs_inode *
49 struct xfs_inode *ip; in xfs_inode_alloc()
93 struct xfs_inode *ip = XFS_I(inode); in xfs_inode_free_callback()
119 struct xfs_inode *ip) in __xfs_inode_free()
130 struct xfs_inode *ip) in xfs_inode_free()
234 struct xfs_inode *ip) in xfs_inode_set_reclaim_tag()
266 struct xfs_inode *ip) in xfs_inew_wait()
320 struct xfs_inode *ip, in xfs_iget_check_free_state()
354 struct xfs_inode *ip, in xfs_iget_cache_hit()
499 struct xfs_inode **ipp, in xfs_iget_cache_miss()
[all …]
Dxfs_inode_item.h25 struct xfs_inode;
30 struct xfs_inode *ili_inode; /* inode ptr */
45 extern void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *);
46 extern void xfs_inode_item_destroy(struct xfs_inode *);
49 extern void xfs_iflush_abort(struct xfs_inode *, bool);
Dxfs_filestream.h22 struct xfs_inode;
27 void xfs_filestream_deassociate(struct xfs_inode *ip);
28 xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip);
34 struct xfs_inode *ip) in xfs_inode_is_filestream()
Dxfs_inode.c63 STATIC int xfs_iflush_int(struct xfs_inode *, struct xfs_buf *);
64 STATIC int xfs_iunlink(struct xfs_trans *, struct xfs_inode *);
65 STATIC int xfs_iunlink_remove(struct xfs_trans *, struct xfs_inode *);
72 struct xfs_inode *ip) in xfs_get_extsz_hint()
89 struct xfs_inode *ip) in xfs_get_cowextsz_hint()
121 struct xfs_inode *ip) in xfs_ilock_data_map_shared()
134 struct xfs_inode *ip) in xfs_ilock_attr_map_shared()
619 struct xfs_inode *ip) in __xfs_iflock()
687 struct xfs_inode *ip) in xfs_ip2xflags()
1155 struct xfs_inode *ip = NULL; in xfs_create()
[all …]
Dxfs_filestream.c37 struct xfs_inode *ip;
143 struct xfs_inode *ip, in xfs_filestream_pick_ag()
286 static struct xfs_inode *
288 struct xfs_inode *ip) in xfs_filestream_get_parent()
318 struct xfs_inode *ip) in xfs_filestream_lookup_ag()
321 struct xfs_inode *pip = NULL; in xfs_filestream_lookup_ag()
370 struct xfs_inode *ip = ap->ip, *pip; in xfs_filestream_new_ag()
413 struct xfs_inode *ip) in xfs_filestream_deassociate()
Dxfs_reflink.c199 struct xfs_inode *ip, in xfs_reflink_trim_around_shared()
268 struct xfs_inode *ip, in xfs_reflink_reserve_cow()
328 struct xfs_inode *ip, in xfs_reflink_convert_cow_extent()
352 struct xfs_inode *ip, in xfs_reflink_convert_cow()
386 struct xfs_inode *ip, in xfs_reflink_allocate_cow()
492 struct xfs_inode *ip, in xfs_reflink_find_cow_mapping()
521 struct xfs_inode *ip, in xfs_reflink_trim_irec_to_next_cow()
557 struct xfs_inode *ip, in xfs_reflink_cancel_cow_blocks()
635 struct xfs_inode *ip, in xfs_reflink_cancel_cow_range()
687 struct xfs_inode *ip, in xfs_reflink_end_cow()
[all …]
Dxfs_file.c56 struct xfs_inode *ip, in xfs_zero_range()
66 struct xfs_inode *ip, in xfs_update_prealloc_flags()
111 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync()
135 struct xfs_inode *ip = XFS_I(inode); in xfs_file_fsync()
208 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_file_dio_aio_read()
231 struct xfs_inode *ip = XFS_I(iocb->ki_filp->f_mapping->host); in xfs_file_dax_read()
259 struct xfs_inode *ip = XFS_I(file_inode(iocb->ki_filp)); in xfs_file_buffered_aio_read()
315 struct xfs_inode *ip, in xfs_zero_eof()
342 struct xfs_inode *ip = XFS_I(inode); in xfs_file_aio_write_checks()
438 struct xfs_inode *ip = XFS_I(inode); in xfs_dio_write_end_io()
[all …]
Dxfs_qm.h24 struct xfs_inode;
74 struct xfs_inode *qi_uquotaip; /* user quota inode */
75 struct xfs_inode *qi_gquotaip; /* group quota inode */
76 struct xfs_inode *qi_pquotaip; /* project quota inode */
112 static inline struct xfs_inode *
Dxfs_bmap_util.c57 xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb) in xfs_fsb_to_db()
73 struct xfs_inode *ip, in xfs_zero_extent()
203 struct xfs_inode *ip, in xfs_bmap_eof()
351 struct xfs_inode *ip, in xfs_bmap_count_blocks()
458 struct xfs_inode *ip, in xfs_getbmap_adjust_shared()
834 struct xfs_inode *ip, in xfs_bmap_punch_delalloc_range()
905 xfs_can_free_eofblocks(struct xfs_inode *ip, bool force) in xfs_can_free_eofblocks()
942 struct xfs_inode *ip) in xfs_free_eofblocks()
1022 struct xfs_inode *ip, in xfs_alloc_file_space()
1174 struct xfs_inode *ip, in xfs_unmap_extent()
[all …]
Dxfs_inode_item.c47 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_data_fork_size()
89 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_attr_fork_size()
135 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_size()
153 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_data_fork()
252 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format_attr_fork()
328 struct xfs_inode *ip, in xfs_inode_to_log_dinode()
393 struct xfs_inode *ip, in xfs_inode_item_format_core()
422 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_format()
469 struct xfs_inode *ip = INODE_ITEM(lip)->ili_inode; in xfs_inode_item_pin()
489 struct xfs_inode *ip = INODE_ITEM(lip)->ili_inode; in xfs_inode_item_unpin()
[all …]
/fs/xfs/libxfs/
Dxfs_bmap.h24 struct xfs_inode;
37 struct xfs_inode *ip; /* incore inode pointer */
201 void xfs_bmap_trace_exlist(struct xfs_inode *ip, xfs_extnum_t cnt,
211 void xfs_trim_extent_eof(struct xfs_bmbt_irec *, struct xfs_inode *);
212 int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd);
213 void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork);
218 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip,
220 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip,
222 int xfs_bmap_last_offset(struct xfs_inode *ip, xfs_fileoff_t *unused,
224 int xfs_bmap_one_block(struct xfs_inode *ip, int whichfork);
[all …]
Dxfs_inode_fork.h140 struct xfs_ifork *xfs_iext_state_to_fork(struct xfs_inode *ip, int state);
142 int xfs_iformat_fork(struct xfs_inode *, struct xfs_dinode *);
143 void xfs_iflush_fork(struct xfs_inode *, struct xfs_dinode *,
145 void xfs_idestroy_fork(struct xfs_inode *, int);
146 void xfs_idata_realloc(struct xfs_inode *, int, int);
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 *, int, const void *, int);
156 void xfs_iext_insert(struct xfs_inode *, xfs_extnum_t, xfs_extnum_t,
[all …]
Dxfs_dir2_priv.h31 extern int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp,
47 extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp);
48 extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp,
50 extern int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno,
61 extern int xfs_dir3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
63 extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp,
92 extern bool xfs_dir3_leaf_check_int(struct xfs_mount *mp, struct xfs_inode *dp,
98 extern xfs_dahash_t xfs_dir2_leaf_lasthash(struct xfs_inode *dp,
103 extern int xfs_dir2_leafn_order(struct xfs_inode *dp, struct xfs_buf *leaf1_bp,
117 extern int xfs_dir2_free_read(struct xfs_trans *tp, struct xfs_inode *dp,
[all …]
Dxfs_dir2.h26 struct xfs_inode;
117 xfs_dir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
119 xfs_nondir_get_ops(struct xfs_mount *mp, struct xfs_inode *dp);
128 extern int xfs_dir_isempty(struct xfs_inode *dp);
129 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp,
130 struct xfs_inode *pdp);
131 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp,
135 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp,
138 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp,
142 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp,
[all …]
Dxfs_attr_leaf.h28 struct xfs_inode;
54 int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp);
55 int xfs_attr_shortform_bytesfit(struct xfs_inode *dp, int bytes);
56 void xfs_attr_fork_remove(struct xfs_inode *ip, struct xfs_trans *tp);
98 int xfs_attr3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
Dxfs_da_btree.h23 struct xfs_inode;
71 struct xfs_inode *dp; /* directory inode to manipulate */
187 int xfs_da3_node_read(struct xfs_trans *tp, struct xfs_inode *dp,
197 int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp,
200 int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp,
204 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
Dxfs_inode_buf.h21 struct xfs_inode;
69 struct xfs_inode *, uint);
71 void xfs_inode_to_disk(struct xfs_inode *ip, struct xfs_dinode *to,
73 void xfs_inode_from_disk(struct xfs_inode *ip, struct xfs_dinode *from);

1234