• Home
  • Raw
  • Download

Lines Matching refs:mp

47 #define xfs_daddr_to_agno(mp,d) \  argument
48 ((xfs_agnumber_t)(XFS_BB_TO_FSBT(mp, d) / (mp)->m_sb.sb_agblocks))
49 #define xfs_daddr_to_agbno(mp,d) \ argument
50 ((xfs_agblock_t)(XFS_BB_TO_FSBT(mp, d) % (mp)->m_sb.sb_agblocks))
94 #define XFS_SEND_DATA(mp, ev,ip,off,len,fl,lock) \ argument
95 (*(mp)->m_dm_ops->xfs_send_data)(ev,ip,off,len,fl,lock)
96 #define XFS_SEND_MMAP(mp, vma,fl) \ argument
97 (*(mp)->m_dm_ops->xfs_send_mmap)(vma,fl)
98 #define XFS_SEND_DESTROY(mp, ip,right) \ argument
99 (*(mp)->m_dm_ops->xfs_send_destroy)(ip,right)
100 #define XFS_SEND_NAMESP(mp, ev,b1,r1,b2,r2,n1,n2,mode,rval,fl) \ argument
101 (*(mp)->m_dm_ops->xfs_send_namesp)(ev,NULL,b1,r1,b2,r2,n1,n2,mode,rval,fl)
102 #define XFS_SEND_PREUNMOUNT(mp,b1,r1,b2,r2,n1,n2,mode,rval,fl) \ argument
103 (*(mp)->m_dm_ops->xfs_send_namesp)(DM_EVENT_PREUNMOUNT,mp,b1,r1,b2,r2,n1,n2,mode,rval,fl)
104 #define XFS_SEND_MOUNT(mp,right,path,name) \ argument
105 (*(mp)->m_dm_ops->xfs_send_mount)(mp,right,path,name)
106 #define XFS_SEND_UNMOUNT(mp, ip,right,mode,rval,fl) \ argument
107 (*(mp)->m_dm_ops->xfs_send_unmount)(mp,ip,right,mode,rval,fl)
161 #define XFS_QM_INIT(mp, mnt, fl) \ argument
162 (*(mp)->m_qm_ops->xfs_qminit)(mp, mnt, fl)
163 #define XFS_QM_MOUNT(mp, mnt, fl) \ argument
164 (*(mp)->m_qm_ops->xfs_qmmount)(mp, mnt, fl)
165 #define XFS_QM_UNMOUNT(mp) \ argument
166 (*(mp)->m_qm_ops->xfs_qmunmount)(mp)
167 #define XFS_QM_DONE(mp) \ argument
168 (*(mp)->m_qm_ops->xfs_qmdone)(mp)
169 #define XFS_QM_DQRELE(mp, dq) \ argument
170 (*(mp)->m_qm_ops->xfs_dqrele)(dq)
171 #define XFS_QM_DQATTACH(mp, ip, fl) \ argument
172 (*(mp)->m_qm_ops->xfs_dqattach)(ip, fl)
173 #define XFS_QM_DQDETACH(mp, ip) \ argument
174 (*(mp)->m_qm_ops->xfs_dqdetach)(ip)
175 #define XFS_QM_DQPURGEALL(mp, fl) \ argument
176 (*(mp)->m_qm_ops->xfs_dqpurgeall)(mp, fl)
177 #define XFS_QM_DQVOPALLOC(mp, ip, uid, gid, prid, fl, dq1, dq2) \ argument
178 (*(mp)->m_qm_ops->xfs_dqvopalloc)(mp, ip, uid, gid, prid, fl, dq1, dq2)
179 #define XFS_QM_DQVOPCREATE(mp, tp, ip, dq1, dq2) \ argument
180 (*(mp)->m_qm_ops->xfs_dqvopcreate)(tp, ip, dq1, dq2)
181 #define XFS_QM_DQVOPRENAME(mp, ip) \ argument
182 (*(mp)->m_qm_ops->xfs_dqvoprename)(ip)
183 #define XFS_QM_DQVOPCHOWN(mp, tp, ip, dqp, dq) \ argument
184 (*(mp)->m_qm_ops->xfs_dqvopchown)(tp, ip, dqp, dq)
185 #define XFS_QM_DQVOPCHOWNRESV(mp, tp, ip, dq1, dq2, fl) \ argument
186 (*(mp)->m_qm_ops->xfs_dqvopchownresv)(tp, ip, dq1, dq2, fl)
189 #define XFS_QM_DQSYNC(mp, flags) \ argument
190 (*(mp)->m_qm_ops->xfs_dqsync)(mp, flags)
191 #define XFS_QM_QUOTACTL(mp, cmd, id, addr) \ argument
192 (*(mp)->m_qm_ops->xfs_quotactl)(mp, cmd, id, addr)
221 #define xfs_icsb_init_counters(mp) (0) argument
222 #define xfs_icsb_destroy_counters(mp) do { } while (0) argument
223 #define xfs_icsb_reinit_counters(mp) do { } while (0) argument
224 #define xfs_icsb_sync_counters(mp, flags) do { } while (0) argument
225 #define xfs_icsb_sync_counters_locked(mp, flags) do { } while (0) argument
408 xfs_preferred_iosize(xfs_mount_t *mp) in xfs_preferred_iosize() argument
410 if (mp->m_flags & XFS_MOUNT_COMPAT_IOSIZE) in xfs_preferred_iosize()
412 return (mp->m_swidth ? in xfs_preferred_iosize()
413 (mp->m_swidth << mp->m_sb.sb_blocklog) : in xfs_preferred_iosize()
414 ((mp->m_flags & XFS_MOUNT_DFLT_IOSIZE) ? in xfs_preferred_iosize()
415 (1 << (int)MAX(mp->m_readio_log, mp->m_writeio_log)) : in xfs_preferred_iosize()
419 #define XFS_MAXIOFFSET(mp) ((mp)->m_maxioffset) argument
421 #define XFS_LAST_UNMOUNT_WAS_CLEAN(mp) \ argument
422 ((mp)->m_flags & XFS_MOUNT_WAS_CLEAN)
423 #define XFS_FORCED_SHUTDOWN(mp) ((mp)->m_flags & XFS_MOUNT_FS_SHUTDOWN) argument
424 void xfs_do_force_shutdown(struct xfs_mount *mp, int flags, char *fname,
436 #define xfs_test_for_freeze(mp) ((mp)->m_super->s_frozen) argument
437 #define xfs_wait_for_freeze(mp,l) vfs_check_frozen((mp)->m_super, (l)) argument
445 xfs_daddr_to_agno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agno() argument
447 xfs_daddr_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agno()
448 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
453 xfs_daddr_to_agbno(struct xfs_mount *mp, xfs_daddr_t d) in xfs_daddr_to_agbno() argument
455 xfs_daddr_t ld = XFS_BB_TO_FSBT(mp, d); in xfs_daddr_to_agbno()
456 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
463 xfs_get_perag(struct xfs_mount *mp, xfs_ino_t ino) in xfs_get_perag() argument
465 return &mp->m_perag[XFS_INO_TO_AGNO(mp, ino)]; in xfs_get_perag()
469 xfs_put_perag(struct xfs_mount *mp, xfs_perag_t *pag) in xfs_put_perag() argument
479 xfs_icsb_lock(xfs_mount_t *mp) in xfs_icsb_lock() argument
481 mutex_lock(&mp->m_icsb_mutex); in xfs_icsb_lock()
485 xfs_icsb_unlock(xfs_mount_t *mp) in xfs_icsb_unlock() argument
487 mutex_unlock(&mp->m_icsb_mutex); in xfs_icsb_unlock()
490 #define xfs_icsb_lock(mp) argument
491 #define xfs_icsb_unlock(mp) argument
503 #define XFS_MOUNT_ILOCK(mp) mutex_lock(&((mp)->m_ilock)) argument
504 #define XFS_MOUNT_IUNLOCK(mp) mutex_unlock(&((mp)->m_ilock)) argument
507 extern int xfs_mountfs(xfs_mount_t *mp);
508 extern void xfs_mountfs_check_barriers(xfs_mount_t *mp);