]>
Commit | Line | Data |
---|---|---|
f31b5e12 DW |
1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
2 | /* | |
3 | * Copyright (c) 2019 Oracle, Inc. | |
4 | * All Rights Reserved. | |
5 | */ | |
6 | #ifndef __LIBFROG_BULKSTAT_H__ | |
7 | #define __LIBFROG_BULKSTAT_H__ | |
8 | ||
9 | /* Bulkstat wrappers */ | |
10 | struct xfs_bstat; | |
4cca629d DW |
11 | int xfrog_bulkstat_single(struct xfs_fd *xfd, uint64_t ino, unsigned int flags, |
12 | struct xfs_bulkstat *bulkstat); | |
13 | int xfrog_bulkstat(struct xfs_fd *xfd, struct xfs_bulkstat_req *req); | |
14 | ||
e6542132 DW |
15 | int xfrog_bulkstat_alloc_req(uint32_t nr, uint64_t startino, |
16 | struct xfs_bulkstat_req **preq); | |
4cca629d DW |
17 | int xfrog_bulkstat_v5_to_v1(struct xfs_fd *xfd, struct xfs_bstat *bs1, |
18 | const struct xfs_bulkstat *bstat); | |
19 | void xfrog_bulkstat_v1_to_v5(struct xfs_fd *xfd, struct xfs_bulkstat *bstat, | |
20 | const struct xfs_bstat *bs1); | |
f31b5e12 | 21 | |
3c8276c4 DW |
22 | void xfrog_bulkstat_set_ag(struct xfs_bulkstat_req *req, uint32_t agno); |
23 | ||
621f3374 | 24 | struct xfs_inogrp; |
b94a69ac DW |
25 | int xfrog_inumbers(struct xfs_fd *xfd, struct xfs_inumbers_req *req); |
26 | ||
e6542132 DW |
27 | int xfrog_inumbers_alloc_req(uint32_t nr, uint64_t startino, |
28 | struct xfs_inumbers_req **preq); | |
3c8276c4 | 29 | void xfrog_inumbers_set_ag(struct xfs_inumbers_req *req, uint32_t agno); |
b94a69ac DW |
30 | void xfrog_inumbers_v5_to_v1(struct xfs_inogrp *ig1, |
31 | const struct xfs_inumbers *ig); | |
32 | void xfrog_inumbers_v1_to_v5(struct xfs_inumbers *ig, | |
33 | const struct xfs_inogrp *ig1); | |
621f3374 | 34 | |
f31b5e12 | 35 | #endif /* __LIBFROG_BULKSTAT_H__ */ |