1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef XFS_SYNC_H
19#define XFS_SYNC_H 1
20
21struct xfs_mount;
22struct xfs_perag;
23
24#define SYNC_WAIT 0x0001
25#define SYNC_TRYLOCK 0x0002
26
27int xfs_iget(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino,
28 uint flags, uint lock_flags, xfs_inode_t **ipp);
29
30void xfs_reclaim_worker(struct work_struct *work);
31
32int xfs_reclaim_inodes(struct xfs_mount *mp, int mode);
33int xfs_reclaim_inodes_count(struct xfs_mount *mp);
34void xfs_reclaim_inodes_nr(struct xfs_mount *mp, int nr_to_scan);
35
36void xfs_inode_set_reclaim_tag(struct xfs_inode *ip);
37
38void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip);
39void xfs_inode_clear_eofblocks_tag(struct xfs_inode *ip);
40int xfs_icache_free_eofblocks(struct xfs_mount *, struct xfs_eofblocks *);
41void xfs_eofblocks_worker(struct work_struct *);
42
43int xfs_sync_inode_grab(struct xfs_inode *ip);
44int xfs_inode_ag_iterator(struct xfs_mount *mp,
45 int (*execute)(struct xfs_inode *ip, struct xfs_perag *pag,
46 int flags, void *args),
47 int flags, void *args);
48int xfs_inode_ag_iterator_tag(struct xfs_mount *mp,
49 int (*execute)(struct xfs_inode *ip, struct xfs_perag *pag,
50 int flags, void *args),
51 int flags, void *args, int tag);
52
53#endif
54