Lines Matching refs:mp
478 #define XFS_ALLOCFREE_LOG_RES(mp,nx) \ argument
479 ((nx) * (2 * XFS_FSB_TO_B((mp), 2 * XFS_AG_MAXLEVELS(mp) - 1)))
480 #define XFS_ALLOCFREE_LOG_COUNT(mp,nx) \ argument
481 ((nx) * (2 * (2 * XFS_AG_MAXLEVELS(mp) - 1)))
490 #define XFS_DIROP_LOG_RES(mp) \ argument
491 (XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \
492 (XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)))
493 #define XFS_DIROP_LOG_COUNT(mp) \ argument
494 (XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK) + \
495 XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)
511 #define XFS_CALC_WRITE_LOG_RES(mp) \ argument
513 ((mp)->m_sb.sb_inodesize + \
514 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)) + \
515 (2 * (mp)->m_sb.sb_sectsize) + \
516 (mp)->m_sb.sb_sectsize + \
517 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
518 (128 * (4 + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + XFS_ALLOCFREE_LOG_COUNT(mp, 2)))),\
519 ((2 * (mp)->m_sb.sb_sectsize) + \
520 (2 * (mp)->m_sb.sb_sectsize) + \
521 (mp)->m_sb.sb_sectsize + \
522 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
523 (128 * (5 + XFS_ALLOCFREE_LOG_COUNT(mp, 2))))))
525 #define XFS_WRITE_LOG_RES(mp) ((mp)->m_reservations.tr_write) argument
540 #define XFS_CALC_ITRUNCATE_LOG_RES(mp) \ argument
542 ((mp)->m_sb.sb_inodesize + \
543 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + 1) + \
544 (128 * (2 + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)))), \
545 ((4 * (mp)->m_sb.sb_sectsize) + \
546 (4 * (mp)->m_sb.sb_sectsize) + \
547 (mp)->m_sb.sb_sectsize + \
548 XFS_ALLOCFREE_LOG_RES(mp, 4) + \
549 (128 * (9 + XFS_ALLOCFREE_LOG_COUNT(mp, 4))) + \
551 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
552 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
553 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
555 #define XFS_ITRUNCATE_LOG_RES(mp) ((mp)->m_reservations.tr_itruncate) argument
569 #define XFS_CALC_RENAME_LOG_RES(mp) \ argument
571 ((4 * (mp)->m_sb.sb_inodesize) + \
572 (2 * XFS_DIROP_LOG_RES(mp)) + \
573 (128 * (4 + 2 * XFS_DIROP_LOG_COUNT(mp)))), \
574 ((3 * (mp)->m_sb.sb_sectsize) + \
575 (3 * (mp)->m_sb.sb_sectsize) + \
576 (mp)->m_sb.sb_sectsize + \
577 XFS_ALLOCFREE_LOG_RES(mp, 3) + \
578 (128 * (7 + XFS_ALLOCFREE_LOG_COUNT(mp, 3))))))
580 #define XFS_RENAME_LOG_RES(mp) ((mp)->m_reservations.tr_rename) argument
594 #define XFS_CALC_LINK_LOG_RES(mp) \ argument
596 ((mp)->m_sb.sb_inodesize + \
597 (mp)->m_sb.sb_inodesize + \
598 XFS_DIROP_LOG_RES(mp) + \
599 (128 * (2 + XFS_DIROP_LOG_COUNT(mp)))), \
600 ((mp)->m_sb.sb_sectsize + \
601 (mp)->m_sb.sb_sectsize + \
602 (mp)->m_sb.sb_sectsize + \
603 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
604 (128 * (3 + XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
606 #define XFS_LINK_LOG_RES(mp) ((mp)->m_reservations.tr_link) argument
620 #define XFS_CALC_REMOVE_LOG_RES(mp) \ argument
622 ((mp)->m_sb.sb_inodesize + \
623 (mp)->m_sb.sb_inodesize + \
624 XFS_DIROP_LOG_RES(mp) + \
625 (128 * (2 + XFS_DIROP_LOG_COUNT(mp)))), \
626 ((2 * (mp)->m_sb.sb_sectsize) + \
627 (2 * (mp)->m_sb.sb_sectsize) + \
628 (mp)->m_sb.sb_sectsize + \
629 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
630 (128 * (5 + XFS_ALLOCFREE_LOG_COUNT(mp, 2))))))
632 #define XFS_REMOVE_LOG_RES(mp) ((mp)->m_reservations.tr_remove) argument
648 #define XFS_CALC_SYMLINK_LOG_RES(mp) \ argument
650 ((mp)->m_sb.sb_inodesize + \
651 (mp)->m_sb.sb_inodesize + \
652 XFS_FSB_TO_B(mp, 1) + \
653 XFS_DIROP_LOG_RES(mp) + \
655 (128 * (4 + XFS_DIROP_LOG_COUNT(mp)))), \
656 (2 * (mp)->m_sb.sb_sectsize + \
657 XFS_FSB_TO_B((mp), XFS_IALLOC_BLOCKS((mp))) + \
658 XFS_FSB_TO_B((mp), XFS_IN_MAXLEVELS(mp)) + \
659 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
660 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
661 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
663 #define XFS_SYMLINK_LOG_RES(mp) ((mp)->m_reservations.tr_symlink) argument
680 #define XFS_CALC_CREATE_LOG_RES(mp) \ argument
682 ((mp)->m_sb.sb_inodesize + \
683 (mp)->m_sb.sb_inodesize + \
684 (mp)->m_sb.sb_sectsize + \
685 XFS_FSB_TO_B(mp, 1) + \
686 XFS_DIROP_LOG_RES(mp) + \
687 (128 * (3 + XFS_DIROP_LOG_COUNT(mp)))), \
688 (3 * (mp)->m_sb.sb_sectsize + \
689 XFS_FSB_TO_B((mp), XFS_IALLOC_BLOCKS((mp))) + \
690 XFS_FSB_TO_B((mp), XFS_IN_MAXLEVELS(mp)) + \
691 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
692 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
693 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
695 #define XFS_CREATE_LOG_RES(mp) ((mp)->m_reservations.tr_create) argument
700 #define XFS_CALC_MKDIR_LOG_RES(mp) XFS_CALC_CREATE_LOG_RES(mp) argument
702 #define XFS_MKDIR_LOG_RES(mp) ((mp)->m_reservations.tr_mkdir) argument
714 #define XFS_CALC_IFREE_LOG_RES(mp) \ argument
715 ((mp)->m_sb.sb_inodesize + \
716 (mp)->m_sb.sb_sectsize + \
717 (mp)->m_sb.sb_sectsize + \
718 XFS_FSB_TO_B((mp), 1) + \
719 MAX((__uint16_t)XFS_FSB_TO_B((mp), 1), XFS_INODE_CLUSTER_SIZE(mp)) + \
721 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
722 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
723 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
726 #define XFS_IFREE_LOG_RES(mp) ((mp)->m_reservations.tr_ifree) argument
732 #define XFS_CALC_ICHANGE_LOG_RES(mp) ((mp)->m_sb.sb_inodesize + \ argument
733 (mp)->m_sb.sb_sectsize + 512)
735 #define XFS_ICHANGE_LOG_RES(mp) ((mp)->m_reservations.tr_ichange) argument
743 #define XFS_CALC_GROWDATA_LOG_RES(mp) \ argument
744 ((mp)->m_sb.sb_sectsize * 3 + \
745 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
746 (128 * (3 + XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
748 #define XFS_GROWDATA_LOG_RES(mp) ((mp)->m_reservations.tr_growdata) argument
760 #define XFS_CALC_GROWRTALLOC_LOG_RES(mp) \ argument
761 (2 * (mp)->m_sb.sb_sectsize + \
762 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)) + \
763 (mp)->m_sb.sb_inodesize + \
764 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
766 (3 + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + \
767 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
769 #define XFS_GROWRTALLOC_LOG_RES(mp) ((mp)->m_reservations.tr_growrtalloc) argument
776 #define XFS_CALC_GROWRTZERO_LOG_RES(mp) \ argument
777 ((mp)->m_sb.sb_blocksize + 128)
779 #define XFS_GROWRTZERO_LOG_RES(mp) ((mp)->m_reservations.tr_growrtzero) argument
791 #define XFS_CALC_GROWRTFREE_LOG_RES(mp) \ argument
792 ((mp)->m_sb.sb_sectsize + \
793 2 * (mp)->m_sb.sb_inodesize + \
794 (mp)->m_sb.sb_blocksize + \
795 (mp)->m_rsumsize + \
798 #define XFS_GROWRTFREE_LOG_RES(mp) ((mp)->m_reservations.tr_growrtfree) argument
804 #define XFS_CALC_SWRITE_LOG_RES(mp) \ argument
805 ((mp)->m_sb.sb_inodesize + 128)
807 #define XFS_SWRITE_LOG_RES(mp) ((mp)->m_reservations.tr_swrite) argument
813 #define XFS_FSYNC_TS_LOG_RES(mp) ((mp)->m_reservations.tr_swrite) argument
819 #define XFS_CALC_WRITEID_LOG_RES(mp) \ argument
820 ((mp)->m_sb.sb_inodesize + 128)
822 #define XFS_WRITEID_LOG_RES(mp) ((mp)->m_reservations.tr_swrite) argument
832 #define XFS_CALC_ADDAFORK_LOG_RES(mp) \ argument
833 ((mp)->m_sb.sb_inodesize + \
834 (mp)->m_sb.sb_sectsize * 2 + \
835 (mp)->m_dirblksize + \
836 (XFS_DIR_IS_V1(mp) ? 0 : \
837 XFS_FSB_TO_B(mp, (XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1))) + \
838 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
840 (XFS_DIR_IS_V1(mp) ? 0 : \
841 XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1) + \
842 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
844 #define XFS_ADDAFORK_LOG_RES(mp) ((mp)->m_reservations.tr_addafork) argument
857 #define XFS_CALC_ATTRINVAL_LOG_RES(mp) \ argument
859 ((mp)->m_sb.sb_inodesize + \
860 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)) + \
861 (128 * (1 + XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)))), \
862 ((4 * (mp)->m_sb.sb_sectsize) + \
863 (4 * (mp)->m_sb.sb_sectsize) + \
864 (mp)->m_sb.sb_sectsize + \
865 XFS_ALLOCFREE_LOG_RES(mp, 4) + \
866 (128 * (9 + XFS_ALLOCFREE_LOG_COUNT(mp, 4))))))
868 #define XFS_ATTRINVAL_LOG_RES(mp) ((mp)->m_reservations.tr_attrinval) argument
880 #define XFS_CALC_ATTRSET_LOG_RES(mp) \ argument
881 ((mp)->m_sb.sb_inodesize + \
882 (mp)->m_sb.sb_sectsize + \
883 XFS_FSB_TO_B((mp), XFS_DA_NODE_MAXDEPTH) + \
886 #define XFS_ATTRSET_LOG_RES(mp, ext) \ argument
887 ((mp)->m_reservations.tr_attrset + \
888 (ext * (mp)->m_sb.sb_sectsize) + \
889 (ext * XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK))) + \
890 (128 * (ext + (ext * XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)))))
903 #define XFS_CALC_ATTRRM_LOG_RES(mp) \ argument
905 ((mp)->m_sb.sb_inodesize + \
906 XFS_FSB_TO_B((mp), XFS_DA_NODE_MAXDEPTH) + \
907 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)) + \
908 (128 * (1 + XFS_DA_NODE_MAXDEPTH + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)))), \
909 ((2 * (mp)->m_sb.sb_sectsize) + \
910 (2 * (mp)->m_sb.sb_sectsize) + \
911 (mp)->m_sb.sb_sectsize + \
912 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
913 (128 * (5 + XFS_ALLOCFREE_LOG_COUNT(mp, 2))))))
915 #define XFS_ATTRRM_LOG_RES(mp) ((mp)->m_reservations.tr_attrrm) argument
920 #define XFS_CALC_CLEAR_AGI_BUCKET_LOG_RES(mp) \ argument
921 ((mp)->m_sb.sb_sectsize + 128)
923 #define XFS_CLEAR_AGI_BUCKET_LOG_RES(mp) ((mp)->m_reservations.tr_clearagi) argument