xfs_iunlink_item.h 611 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2020-2022, Red Hat, Inc.
  4. * All Rights Reserved.
  5. */
  6. #ifndef XFS_IUNLINK_ITEM_H
  7. #define XFS_IUNLINK_ITEM_H 1
  8. struct xfs_trans;
  9. struct xfs_inode;
  10. struct xfs_perag;
  11. /* in memory log item structure */
  12. struct xfs_iunlink_item {
  13. struct xfs_log_item item;
  14. struct xfs_inode *ip;
  15. struct xfs_perag *pag;
  16. xfs_agino_t next_agino;
  17. xfs_agino_t old_agino;
  18. };
  19. extern struct kmem_cache *xfs_iunlink_cache;
  20. int xfs_iunlink_log_inode(struct xfs_trans *tp, struct xfs_inode *ip,
  21. struct xfs_perag *pag, xfs_agino_t next_agino);
  22. #endif /* XFS_IUNLINK_ITEM_H */