forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/fs/xfs/xfs_dquot_item.h
....@@ -11,25 +11,28 @@
1111 struct xfs_mount;
1212 struct xfs_qoff_logitem;
1313
14
-typedef struct xfs_dq_logitem {
15
- xfs_log_item_t qli_item; /* common portion */
16
- struct xfs_dquot *qli_dquot; /* dquot ptr */
17
- xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
18
-} xfs_dq_logitem_t;
14
+struct xfs_dq_logitem {
15
+ struct xfs_log_item qli_item; /* common portion */
16
+ struct xfs_dquot *qli_dquot; /* dquot ptr */
17
+ xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
18
+};
1919
20
-typedef struct xfs_qoff_logitem {
21
- xfs_log_item_t qql_item; /* common portion */
22
- struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
20
+struct xfs_qoff_logitem {
21
+ struct xfs_log_item qql_item; /* common portion */
22
+ struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
2323 unsigned int qql_flags;
24
-} xfs_qoff_logitem_t;
24
+};
2525
2626
27
-extern void xfs_qm_dquot_logitem_init(struct xfs_dquot *);
28
-extern xfs_qoff_logitem_t *xfs_qm_qoff_logitem_init(struct xfs_mount *,
29
- struct xfs_qoff_logitem *, uint);
30
-extern xfs_qoff_logitem_t *xfs_trans_get_qoff_item(struct xfs_trans *,
31
- struct xfs_qoff_logitem *, uint);
32
-extern void xfs_trans_log_quotaoff_item(struct xfs_trans *,
33
- struct xfs_qoff_logitem *);
27
+void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
28
+struct xfs_qoff_logitem *xfs_qm_qoff_logitem_init(struct xfs_mount *mp,
29
+ struct xfs_qoff_logitem *start,
30
+ uint flags);
31
+void xfs_qm_qoff_logitem_relse(struct xfs_qoff_logitem *);
32
+struct xfs_qoff_logitem *xfs_trans_get_qoff_item(struct xfs_trans *tp,
33
+ struct xfs_qoff_logitem *startqoff,
34
+ uint flags);
35
+void xfs_trans_log_quotaoff_item(struct xfs_trans *tp,
36
+ struct xfs_qoff_logitem *qlp);
3437
3538 #endif /* __XFS_DQUOT_ITEM_H__ */