This source file includes following definitions.
- xfs_ibulk_advance
1
2
3
4
5 #ifndef __XFS_ITABLE_H__
6 #define __XFS_ITABLE_H__
7
8
9 struct xfs_ibulk {
10 struct xfs_mount *mp;
11 void __user *ubuffer;
12 xfs_ino_t startino;
13 unsigned int icount;
14 unsigned int ocount;
15 unsigned int flags;
16 };
17
18
19 #define XFS_IBULK_SAME_AG (XFS_IWALK_SAME_AG)
20
21
22
23
24
25 static inline int
26 xfs_ibulk_advance(
27 struct xfs_ibulk *breq,
28 size_t bytes)
29 {
30 char __user *b = breq->ubuffer;
31
32 breq->ubuffer = b + bytes;
33 breq->ocount++;
34 return breq->ocount == breq->icount ? -ECANCELED : 0;
35 }
36
37
38
39
40
41
42
43
44
45
46
47
48
49 typedef int (*bulkstat_one_fmt_pf)(struct xfs_ibulk *breq,
50 const struct xfs_bulkstat *bstat);
51
52 int xfs_bulkstat_one(struct xfs_ibulk *breq, bulkstat_one_fmt_pf formatter);
53 int xfs_bulkstat(struct xfs_ibulk *breq, bulkstat_one_fmt_pf formatter);
54 void xfs_bulkstat_to_bstat(struct xfs_mount *mp, struct xfs_bstat *bs1,
55 const struct xfs_bulkstat *bstat);
56
57 typedef int (*inumbers_fmt_pf)(struct xfs_ibulk *breq,
58 const struct xfs_inumbers *igrp);
59
60 int xfs_inumbers(struct xfs_ibulk *breq, inumbers_fmt_pf formatter);
61 void xfs_inumbers_to_inogrp(struct xfs_inogrp *ig1,
62 const struct xfs_inumbers *ig);
63
64 #endif