Lines Matching refs:mp
272 #define XFS_ALLOCFREE_LOG_RES(mp,nx) \ argument
273 ((nx) * (2 * XFS_FSB_TO_B((mp), 2 * XFS_AG_MAXLEVELS(mp) - 1)))
274 #define XFS_ALLOCFREE_LOG_COUNT(mp,nx) \ argument
275 ((nx) * (2 * (2 * XFS_AG_MAXLEVELS(mp) - 1)))
284 #define XFS_DIROP_LOG_RES(mp) \ argument
285 (XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \
286 (XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)))
287 #define XFS_DIROP_LOG_COUNT(mp) \ argument
288 (XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK) + \
289 XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)
305 #define XFS_CALC_WRITE_LOG_RES(mp) \ argument
307 ((mp)->m_sb.sb_inodesize + \
308 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)) + \
309 (2 * (mp)->m_sb.sb_sectsize) + \
310 (mp)->m_sb.sb_sectsize + \
311 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
312 (128 * (4 + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + XFS_ALLOCFREE_LOG_COUNT(mp, 2)))),\
313 ((2 * (mp)->m_sb.sb_sectsize) + \
314 (2 * (mp)->m_sb.sb_sectsize) + \
315 (mp)->m_sb.sb_sectsize + \
316 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
317 (128 * (5 + XFS_ALLOCFREE_LOG_COUNT(mp, 2))))))
319 #define XFS_WRITE_LOG_RES(mp) ((mp)->m_reservations.tr_write) argument
334 #define XFS_CALC_ITRUNCATE_LOG_RES(mp) \ argument
336 ((mp)->m_sb.sb_inodesize + \
337 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + 1) + \
338 (128 * (2 + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)))), \
339 ((4 * (mp)->m_sb.sb_sectsize) + \
340 (4 * (mp)->m_sb.sb_sectsize) + \
341 (mp)->m_sb.sb_sectsize + \
342 XFS_ALLOCFREE_LOG_RES(mp, 4) + \
343 (128 * (9 + XFS_ALLOCFREE_LOG_COUNT(mp, 4))) + \
345 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
346 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
347 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
349 #define XFS_ITRUNCATE_LOG_RES(mp) ((mp)->m_reservations.tr_itruncate) argument
363 #define XFS_CALC_RENAME_LOG_RES(mp) \ argument
365 ((4 * (mp)->m_sb.sb_inodesize) + \
366 (2 * XFS_DIROP_LOG_RES(mp)) + \
367 (128 * (4 + 2 * XFS_DIROP_LOG_COUNT(mp)))), \
368 ((3 * (mp)->m_sb.sb_sectsize) + \
369 (3 * (mp)->m_sb.sb_sectsize) + \
370 (mp)->m_sb.sb_sectsize + \
371 XFS_ALLOCFREE_LOG_RES(mp, 3) + \
372 (128 * (7 + XFS_ALLOCFREE_LOG_COUNT(mp, 3))))))
374 #define XFS_RENAME_LOG_RES(mp) ((mp)->m_reservations.tr_rename) argument
388 #define XFS_CALC_LINK_LOG_RES(mp) \ argument
390 ((mp)->m_sb.sb_inodesize + \
391 (mp)->m_sb.sb_inodesize + \
392 XFS_DIROP_LOG_RES(mp) + \
393 (128 * (2 + XFS_DIROP_LOG_COUNT(mp)))), \
394 ((mp)->m_sb.sb_sectsize + \
395 (mp)->m_sb.sb_sectsize + \
396 (mp)->m_sb.sb_sectsize + \
397 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
398 (128 * (3 + XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
400 #define XFS_LINK_LOG_RES(mp) ((mp)->m_reservations.tr_link) argument
414 #define XFS_CALC_REMOVE_LOG_RES(mp) \ argument
416 ((mp)->m_sb.sb_inodesize + \
417 (mp)->m_sb.sb_inodesize + \
418 XFS_DIROP_LOG_RES(mp) + \
419 (128 * (2 + XFS_DIROP_LOG_COUNT(mp)))), \
420 ((2 * (mp)->m_sb.sb_sectsize) + \
421 (2 * (mp)->m_sb.sb_sectsize) + \
422 (mp)->m_sb.sb_sectsize + \
423 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
424 (128 * (5 + XFS_ALLOCFREE_LOG_COUNT(mp, 2))))))
426 #define XFS_REMOVE_LOG_RES(mp) ((mp)->m_reservations.tr_remove) argument
442 #define XFS_CALC_SYMLINK_LOG_RES(mp) \ argument
444 ((mp)->m_sb.sb_inodesize + \
445 (mp)->m_sb.sb_inodesize + \
446 XFS_FSB_TO_B(mp, 1) + \
447 XFS_DIROP_LOG_RES(mp) + \
449 (128 * (4 + XFS_DIROP_LOG_COUNT(mp)))), \
450 (2 * (mp)->m_sb.sb_sectsize + \
451 XFS_FSB_TO_B((mp), XFS_IALLOC_BLOCKS((mp))) + \
452 XFS_FSB_TO_B((mp), XFS_IN_MAXLEVELS(mp)) + \
453 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
454 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
455 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
457 #define XFS_SYMLINK_LOG_RES(mp) ((mp)->m_reservations.tr_symlink) argument
474 #define XFS_CALC_CREATE_LOG_RES(mp) \ argument
476 ((mp)->m_sb.sb_inodesize + \
477 (mp)->m_sb.sb_inodesize + \
478 (mp)->m_sb.sb_sectsize + \
479 XFS_FSB_TO_B(mp, 1) + \
480 XFS_DIROP_LOG_RES(mp) + \
481 (128 * (3 + XFS_DIROP_LOG_COUNT(mp)))), \
482 (3 * (mp)->m_sb.sb_sectsize + \
483 XFS_FSB_TO_B((mp), XFS_IALLOC_BLOCKS((mp))) + \
484 XFS_FSB_TO_B((mp), XFS_IN_MAXLEVELS(mp)) + \
485 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
486 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
487 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))))
489 #define XFS_CREATE_LOG_RES(mp) ((mp)->m_reservations.tr_create) argument
494 #define XFS_CALC_MKDIR_LOG_RES(mp) XFS_CALC_CREATE_LOG_RES(mp) argument
496 #define XFS_MKDIR_LOG_RES(mp) ((mp)->m_reservations.tr_mkdir) argument
508 #define XFS_CALC_IFREE_LOG_RES(mp) \ argument
509 ((mp)->m_sb.sb_inodesize + \
510 (mp)->m_sb.sb_sectsize + \
511 (mp)->m_sb.sb_sectsize + \
512 XFS_FSB_TO_B((mp), 1) + \
513 MAX((__uint16_t)XFS_FSB_TO_B((mp), 1), XFS_INODE_CLUSTER_SIZE(mp)) + \
515 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
516 (128 * (2 + XFS_IALLOC_BLOCKS(mp) + XFS_IN_MAXLEVELS(mp) + \
517 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
520 #define XFS_IFREE_LOG_RES(mp) ((mp)->m_reservations.tr_ifree) argument
526 #define XFS_CALC_ICHANGE_LOG_RES(mp) ((mp)->m_sb.sb_inodesize + \ argument
527 (mp)->m_sb.sb_sectsize + 512)
529 #define XFS_ICHANGE_LOG_RES(mp) ((mp)->m_reservations.tr_ichange) argument
537 #define XFS_CALC_GROWDATA_LOG_RES(mp) \ argument
538 ((mp)->m_sb.sb_sectsize * 3 + \
539 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
540 (128 * (3 + XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
542 #define XFS_GROWDATA_LOG_RES(mp) ((mp)->m_reservations.tr_growdata) argument
554 #define XFS_CALC_GROWRTALLOC_LOG_RES(mp) \ argument
555 (2 * (mp)->m_sb.sb_sectsize + \
556 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)) + \
557 (mp)->m_sb.sb_inodesize + \
558 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
560 (3 + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) + \
561 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
563 #define XFS_GROWRTALLOC_LOG_RES(mp) ((mp)->m_reservations.tr_growrtalloc) argument
570 #define XFS_CALC_GROWRTZERO_LOG_RES(mp) \ argument
571 ((mp)->m_sb.sb_blocksize + 128)
573 #define XFS_GROWRTZERO_LOG_RES(mp) ((mp)->m_reservations.tr_growrtzero) argument
585 #define XFS_CALC_GROWRTFREE_LOG_RES(mp) \ argument
586 ((mp)->m_sb.sb_sectsize + \
587 2 * (mp)->m_sb.sb_inodesize + \
588 (mp)->m_sb.sb_blocksize + \
589 (mp)->m_rsumsize + \
592 #define XFS_GROWRTFREE_LOG_RES(mp) ((mp)->m_reservations.tr_growrtfree) argument
598 #define XFS_CALC_SWRITE_LOG_RES(mp) \ argument
599 ((mp)->m_sb.sb_inodesize + 128)
601 #define XFS_SWRITE_LOG_RES(mp) ((mp)->m_reservations.tr_swrite) argument
607 #define XFS_FSYNC_TS_LOG_RES(mp) ((mp)->m_reservations.tr_swrite) argument
613 #define XFS_CALC_WRITEID_LOG_RES(mp) \ argument
614 ((mp)->m_sb.sb_inodesize + 128)
616 #define XFS_WRITEID_LOG_RES(mp) ((mp)->m_reservations.tr_swrite) argument
626 #define XFS_CALC_ADDAFORK_LOG_RES(mp) \ argument
627 ((mp)->m_sb.sb_inodesize + \
628 (mp)->m_sb.sb_sectsize * 2 + \
629 (mp)->m_dirblksize + \
630 XFS_FSB_TO_B(mp, (XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1)) + \
631 XFS_ALLOCFREE_LOG_RES(mp, 1) + \
632 (128 * (4 + (XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK) + 1) + \
633 XFS_ALLOCFREE_LOG_COUNT(mp, 1))))
635 #define XFS_ADDAFORK_LOG_RES(mp) ((mp)->m_reservations.tr_addafork) argument
648 #define XFS_CALC_ATTRINVAL_LOG_RES(mp) \ argument
650 ((mp)->m_sb.sb_inodesize + \
651 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)) + \
652 (128 * (1 + XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)))), \
653 ((4 * (mp)->m_sb.sb_sectsize) + \
654 (4 * (mp)->m_sb.sb_sectsize) + \
655 (mp)->m_sb.sb_sectsize + \
656 XFS_ALLOCFREE_LOG_RES(mp, 4) + \
657 (128 * (9 + XFS_ALLOCFREE_LOG_COUNT(mp, 4))))))
659 #define XFS_ATTRINVAL_LOG_RES(mp) ((mp)->m_reservations.tr_attrinval) argument
671 #define XFS_CALC_ATTRSET_LOG_RES(mp) \ argument
672 ((mp)->m_sb.sb_inodesize + \
673 (mp)->m_sb.sb_sectsize + \
674 XFS_FSB_TO_B((mp), XFS_DA_NODE_MAXDEPTH) + \
677 #define XFS_ATTRSET_LOG_RES(mp, ext) \ argument
678 ((mp)->m_reservations.tr_attrset + \
679 (ext * (mp)->m_sb.sb_sectsize) + \
680 (ext * XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK))) + \
681 (128 * (ext + (ext * XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)))))
694 #define XFS_CALC_ATTRRM_LOG_RES(mp) \ argument
696 ((mp)->m_sb.sb_inodesize + \
697 XFS_FSB_TO_B((mp), XFS_DA_NODE_MAXDEPTH) + \
698 XFS_FSB_TO_B((mp), XFS_BM_MAXLEVELS(mp, XFS_ATTR_FORK)) + \
699 (128 * (1 + XFS_DA_NODE_MAXDEPTH + XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK)))), \
700 ((2 * (mp)->m_sb.sb_sectsize) + \
701 (2 * (mp)->m_sb.sb_sectsize) + \
702 (mp)->m_sb.sb_sectsize + \
703 XFS_ALLOCFREE_LOG_RES(mp, 2) + \
704 (128 * (5 + XFS_ALLOCFREE_LOG_COUNT(mp, 2))))))
706 #define XFS_ATTRRM_LOG_RES(mp) ((mp)->m_reservations.tr_attrrm) argument
711 #define XFS_CALC_CLEAR_AGI_BUCKET_LOG_RES(mp) \ argument
712 ((mp)->m_sb.sb_sectsize + 128)
714 #define XFS_CLEAR_AGI_BUCKET_LOG_RES(mp) ((mp)->m_reservations.tr_clearagi) argument