Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 106) sorted by relevance

12345

/fs/xfs/
Dxfs_trans.h272 #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)
[all …]
Dxfs_trans_space.h24 #define XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) \ argument
25 (((mp)->m_alloc_mxr[0]) - ((mp)->m_alloc_mnr[0]))
26 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
27 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument
28 (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \
29 XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp)) * \
30 XFS_EXTENTADD_SPACE_RES(mp,w))
31 #define XFS_DAENTER_1B(mp,w) ((w) == XFS_DATA_FORK ? (mp)->m_dirblkfsbs : 1) argument
32 #define XFS_DAENTER_DBS(mp,w) \ argument
34 #define XFS_DAENTER_BLOCKS(mp,w) \ argument
[all …]
Dxfs_mount.c63 #define xfs_icsb_balance_counter(mp, a, b) do { } while (0) argument
64 #define xfs_icsb_balance_counter_locked(mp, a, b) do { } while (0) argument
65 #define xfs_icsb_modify_counters(mp, a, b, c) do { } while (0) argument
131 xfs_mount_t *mp) in xfs_free_perag() argument
133 if (mp->m_perag) { in xfs_free_perag()
136 for (agno = 0; agno < mp->m_maxagi; agno++) in xfs_free_perag()
137 if (mp->m_perag[agno].pagb_list) in xfs_free_perag()
138 kmem_free(mp->m_perag[agno].pagb_list); in xfs_free_perag()
139 kmem_free(mp->m_perag); in xfs_free_perag()
170 xfs_mount_t *mp, in xfs_mount_validate_sb() argument
[all …]
Dxfs_fsops.c55 xfs_mount_t *mp, in xfs_fs_geometry() argument
59 geo->blocksize = mp->m_sb.sb_blocksize; in xfs_fs_geometry()
60 geo->rtextsize = mp->m_sb.sb_rextsize; in xfs_fs_geometry()
61 geo->agblocks = mp->m_sb.sb_agblocks; in xfs_fs_geometry()
62 geo->agcount = mp->m_sb.sb_agcount; in xfs_fs_geometry()
63 geo->logblocks = mp->m_sb.sb_logblocks; in xfs_fs_geometry()
64 geo->sectsize = mp->m_sb.sb_sectsize; in xfs_fs_geometry()
65 geo->inodesize = mp->m_sb.sb_inodesize; in xfs_fs_geometry()
66 geo->imaxpct = mp->m_sb.sb_imax_pct; in xfs_fs_geometry()
67 geo->datablocks = mp->m_sb.sb_dblocks; in xfs_fs_geometry()
[all …]
Dxfs_mount.h47 #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)
[all …]
Dxfs_filestream.c44 xfs_mount_t *mp, /* mount point */ in xfs_filestreams_trace() argument
59 (void *)mp, in xfs_filestreams_trace()
69 #define TRACE0(mp,t) TRACE6(mp,t,0,0,0,0,0,0) argument
70 #define TRACE1(mp,t,a0) TRACE6(mp,t,a0,0,0,0,0,0) argument
71 #define TRACE2(mp,t,a0,a1) TRACE6(mp,t,a0,a1,0,0,0,0) argument
72 #define TRACE3(mp,t,a0,a1,a2) TRACE6(mp,t,a0,a1,a2,0,0,0) argument
73 #define TRACE4(mp,t,a0,a1,a2,a3) TRACE6(mp,t,a0,a1,a2,a3,0,0) argument
74 #define TRACE5(mp,t,a0,a1,a2,a3,a4) TRACE6(mp,t,a0,a1,a2,a3,a4,0) argument
75 #define TRACE6(mp,t,a0,a1,a2,a3,a4,a5) \ argument
76 xfs_filestreams_trace(mp, t, __func__, __LINE__, \
[all …]
Dxfs_inum.h48 #define XFS_INO_OFFSET_BITS(mp) (mp)->m_sb.sb_inopblog argument
49 #define XFS_INO_AGBNO_BITS(mp) (mp)->m_sb.sb_agblklog argument
50 #define XFS_INO_AGINO_BITS(mp) (mp)->m_agino_log argument
51 #define XFS_INO_AGNO_BITS(mp) (mp)->m_agno_log argument
52 #define XFS_INO_BITS(mp) \ argument
53 XFS_INO_AGNO_BITS(mp) + XFS_INO_AGINO_BITS(mp)
54 #define XFS_INO_TO_AGNO(mp,i) \ argument
55 ((xfs_agnumber_t)((i) >> XFS_INO_AGINO_BITS(mp)))
56 #define XFS_INO_TO_AGINO(mp,i) \ argument
57 ((xfs_agino_t)(i) & XFS_INO_MASK(XFS_INO_AGINO_BITS(mp)))
[all …]
Dxfs_quota.h97 #define XFS_DQUOT_LOGRES(mp) (sizeof(xfs_disk_dquot_t) * 3) argument
154 #define XFS_IS_QUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_ALL_QUOTA_ACCT) argument
155 #define XFS_IS_UQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_UQUOTA_ACCT) argument
156 #define XFS_IS_PQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_PQUOTA_ACCT) argument
157 #define XFS_IS_GQUOTA_RUNNING(mp) ((mp)->m_qflags & XFS_GQUOTA_ACCT) argument
158 #define XFS_IS_UQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_UQUOTA_ENFD) argument
159 #define XFS_IS_OQUOTA_ENFORCED(mp) ((mp)->m_qflags & XFS_OQUOTA_ENFD) argument
174 #define XFS_IS_QUOTA_ON(mp) ((mp)->m_qflags & (XFS_UQUOTA_ACTIVE | \ argument
177 #define XFS_IS_OQUOTA_ON(mp) ((mp)->m_qflags & (XFS_GQUOTA_ACTIVE | \ argument
179 #define XFS_IS_UQUOTA_ON(mp) ((mp)->m_qflags & XFS_UQUOTA_ACTIVE) argument
[all …]
Dxfs_ialloc.c52 if (xfs_sb_version_hasalign(&args->mp->m_sb) && in xfs_ialloc_cluster_alignment()
53 args->mp->m_sb.sb_inoalignmt >= in xfs_ialloc_cluster_alignment()
54 XFS_B_TO_FSBT(args->mp, XFS_INODE_CLUSTER_SIZE(args->mp))) in xfs_ialloc_cluster_alignment()
55 return args->mp->m_sb.sb_inoalignmt; in xfs_ialloc_cluster_alignment()
187 args.mp = tp->t_mountp; in xfs_ialloc_ag_alloc()
193 newlen = XFS_IALLOC_INODES(args.mp); in xfs_ialloc_ag_alloc()
194 if (args.mp->m_maxicount && in xfs_ialloc_ag_alloc()
195 args.mp->m_sb.sb_icount + newlen > args.mp->m_maxicount) in xfs_ialloc_ag_alloc()
197 args.minlen = args.maxlen = XFS_IALLOC_BLOCKS(args.mp); in xfs_ialloc_ag_alloc()
205 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + in xfs_ialloc_ag_alloc()
[all …]
Dxfs_ag.h90 #define XFS_AGF_DADDR(mp) ((xfs_daddr_t)(1 << (mp)->m_sectbb_log)) argument
91 #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp)) argument
94 extern int xfs_read_agf(struct xfs_mount *mp, struct xfs_trans *tp,
143 #define XFS_AGI_DADDR(mp) ((xfs_daddr_t)(2 << (mp)->m_sectbb_log)) argument
144 #define XFS_AGI_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp)) argument
147 extern int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp,
154 #define XFS_AGFL_DADDR(mp) ((xfs_daddr_t)(3 << (mp)->m_sectbb_log)) argument
155 #define XFS_AGFL_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp)) argument
156 #define XFS_AGFL_SIZE(mp) ((mp)->m_sb.sb_sectsize / sizeof(xfs_agblock_t)) argument
217 #define XFS_AG_MAXLEVELS(mp) ((mp)->m_ag_maxlevels) argument
[all …]
Dxfs_rtalloc.c81 xfs_mount_t *mp, /* file system mount point */ in xfs_growfs_rt_alloc() argument
106 tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFSRT_ALLOC); in xfs_growfs_rt_alloc()
107 resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks); in xfs_growfs_rt_alloc()
112 XFS_GROWRTALLOC_LOG_RES(mp), 0, in xfs_growfs_rt_alloc()
120 if ((error = xfs_trans_iget(mp, tp, ino, 0, in xfs_growfs_rt_alloc()
153 tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFSRT_ZERO); in xfs_growfs_rt_alloc()
158 XFS_GROWRTZERO_LOG_RES(mp), 0, 0, 0))) in xfs_growfs_rt_alloc()
163 if ((error = xfs_trans_iget(mp, tp, ino, 0, in xfs_growfs_rt_alloc()
169 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_growfs_rt_alloc()
170 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_growfs_rt_alloc()
[all …]
Dxfs_dir2_leaf.h34 #define XFS_DIR2_LEAF_FIRSTDB(mp) \ argument
35 xfs_dir2_byte_to_db(mp, XFS_DIR2_LEAF_OFFSET)
85 static inline int xfs_dir2_max_leaf_ents(struct xfs_mount *mp) in xfs_dir2_max_leaf_ents() argument
87 return (int)(((mp)->m_dirblksize - (uint)sizeof(xfs_dir2_leaf_hdr_t)) / in xfs_dir2_max_leaf_ents()
95 xfs_dir2_leaf_tail_p(struct xfs_mount *mp, xfs_dir2_leaf_t *lp) in xfs_dir2_leaf_tail_p() argument
98 ((char *)(lp) + (mp)->m_dirblksize - in xfs_dir2_leaf_tail_p()
115 xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_byte() argument
124 xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_dataptr() argument
133 xfs_dir2_byte_to_db(struct xfs_mount *mp, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() argument
136 ((mp)->m_sb.sb_blocklog + (mp)->m_sb.sb_dirblklog)); in xfs_dir2_byte_to_db()
[all …]
Dxfs_rtalloc.h38 #define XFS_BLOCKSIZE(mp) ((mp)->m_sb.sb_blocksize) argument
39 #define XFS_BLOCKMASK(mp) ((mp)->m_blockmask) argument
40 #define XFS_BLOCKWSIZE(mp) ((mp)->m_blockwsize) argument
41 #define XFS_BLOCKWMASK(mp) ((mp)->m_blockwmask) argument
46 #define XFS_SUMOFFS(mp,ls,bb) ((int)((ls) * (mp)->m_sb.sb_rbmblocks + (bb))) argument
47 #define XFS_SUMOFFSTOBLOCK(mp,s) \ argument
48 (((s) * (uint)sizeof(xfs_suminfo_t)) >> (mp)->m_sb.sb_blocklog)
49 #define XFS_SUMPTR(mp,bp,so) \ argument
51 (((so) * (uint)sizeof(xfs_suminfo_t)) & XFS_BLOCKMASK(mp))))
53 #define XFS_BITTOBLOCK(mp,bi) ((bi) >> (mp)->m_blkbit_log) argument
[all …]
Dxfs_trans.c66 xfs_calc_write_reservation(xfs_mount_t *mp) in xfs_calc_write_reservation() argument
68 return XFS_CALC_WRITE_LOG_RES(mp) + XFS_DQUOT_LOGRES(mp); in xfs_calc_write_reservation()
72 xfs_calc_itruncate_reservation(xfs_mount_t *mp) in xfs_calc_itruncate_reservation() argument
74 return XFS_CALC_ITRUNCATE_LOG_RES(mp) + XFS_DQUOT_LOGRES(mp); in xfs_calc_itruncate_reservation()
78 xfs_calc_rename_reservation(xfs_mount_t *mp) in xfs_calc_rename_reservation() argument
80 return XFS_CALC_RENAME_LOG_RES(mp) + XFS_DQUOT_LOGRES(mp); in xfs_calc_rename_reservation()
84 xfs_calc_link_reservation(xfs_mount_t *mp) in xfs_calc_link_reservation() argument
86 return XFS_CALC_LINK_LOG_RES(mp) + XFS_DQUOT_LOGRES(mp); in xfs_calc_link_reservation()
90 xfs_calc_remove_reservation(xfs_mount_t *mp) in xfs_calc_remove_reservation() argument
92 return XFS_CALC_REMOVE_LOG_RES(mp) + XFS_DQUOT_LOGRES(mp); in xfs_calc_remove_reservation()
[all …]
Dxfs_rw.c57 xfs_mount_t *mp; in xfs_write_clear_setuid() local
61 mp = ip->i_mount; in xfs_write_clear_setuid()
62 tp = xfs_trans_alloc(mp, XFS_TRANS_WRITEID); in xfs_write_clear_setuid()
64 XFS_WRITEID_LOG_RES(mp), in xfs_write_clear_setuid()
96 xfs_mount_t *mp, in xfs_write_sync_logforce() argument
105 if (!(mp->m_flags & XFS_MOUNT_OSYNCISOSYNC) && in xfs_write_sync_logforce()
129 error = _xfs_log_force(mp, iip->ili_last_lsn, in xfs_write_sync_logforce()
132 error = _xfs_log_force(mp, (xfs_lsn_t)0, in xfs_write_sync_logforce()
154 tp = xfs_trans_alloc(mp, XFS_TRANS_WRITE_SYNC); in xfs_write_sync_logforce()
156 XFS_SWRITE_LOG_RES(mp), in xfs_write_sync_logforce()
[all …]
Dxfs_qmops.c47 xfs_mount_reset_sbqflags(xfs_mount_t *mp) in xfs_mount_reset_sbqflags() argument
52 mp->m_qflags = 0; in xfs_mount_reset_sbqflags()
57 if (mp->m_sb.sb_qflags == 0) in xfs_mount_reset_sbqflags()
59 spin_lock(&mp->m_sb_lock); in xfs_mount_reset_sbqflags()
60 mp->m_sb.sb_qflags = 0; in xfs_mount_reset_sbqflags()
61 spin_unlock(&mp->m_sb_lock); in xfs_mount_reset_sbqflags()
67 if (mp->m_flags & XFS_MOUNT_RDONLY) in xfs_mount_reset_sbqflags()
70 xfs_fs_cmn_err(CE_NOTE, mp, "Writing superblock quota changes"); in xfs_mount_reset_sbqflags()
72 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_SBCHANGE); in xfs_mount_reset_sbqflags()
73 if ((error = xfs_trans_reserve(tp, 0, mp->m_sb.sb_sectsize + 128, 0, 0, in xfs_mount_reset_sbqflags()
[all …]
Dxfs_vnodeops.c62 xfs_mount_t *mp = ip->i_mount; in xfs_setattr() local
77 if (mp->m_flags & XFS_MOUNT_RDONLY) in xfs_setattr()
80 if (XFS_FORCED_SHUTDOWN(mp)) in xfs_setattr()
98 if (XFS_IS_QUOTA_ON(mp) && (mask & (ATTR_UID|ATTR_GID))) { in xfs_setattr()
101 if ((mask & ATTR_UID) && XFS_IS_UQUOTA_ON(mp)) { in xfs_setattr()
107 if ((mask & ATTR_GID) && XFS_IS_GQUOTA_ON(mp)) { in xfs_setattr()
121 code = XFS_QM_DQVOPALLOC(mp, ip, uid, gid, ip->i_d.di_projid, in xfs_setattr()
137 (mp->m_flags & XFS_MOUNT_WSYNC)) { in xfs_setattr()
138 tp = xfs_trans_alloc(mp, XFS_TRANS_SETATTR_NOT_SIZE); in xfs_setattr()
141 XFS_ICHANGE_LOG_RES(mp), 0, in xfs_setattr()
[all …]
/fs/xfs/linux-2.6/
Dxfs_super.c173 struct xfs_mount *mp, in xfs_parseargs() argument
177 struct super_block *sb = mp->m_super; in xfs_parseargs()
189 mp->m_flags |= XFS_MOUNT_RDONLY; in xfs_parseargs()
191 mp->m_flags |= XFS_MOUNT_DIRSYNC; in xfs_parseargs()
193 mp->m_flags |= XFS_MOUNT_WSYNC; in xfs_parseargs()
199 mp->m_flags |= XFS_MOUNT_BARRIER; in xfs_parseargs()
200 mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE; in xfs_parseargs()
201 mp->m_flags |= XFS_MOUNT_SMALL_INUMS; in xfs_parseargs()
206 mp->m_logbufs = -1; in xfs_parseargs()
207 mp->m_logbsize = -1; in xfs_parseargs()
[all …]
Dxfs_sync.c56 xfs_mount_t *mp, in xfs_sync_inodes_ag() argument
60 xfs_perag_t *pag = &mp->m_perag[ag]; in xfs_sync_inodes_ag()
97 first_index = XFS_INO_TO_AGINO(mp, ip->i_ino + 1); in xfs_sync_inodes_ag()
98 if (first_index < XFS_INO_TO_AGINO(mp, ip->i_ino)) { in xfs_sync_inodes_ag()
104 if (XFS_FORCED_SHUTDOWN(mp)) { in xfs_sync_inodes_ag()
171 xfs_mount_t *mp, in xfs_sync_inodes() argument
179 if (mp->m_flags & XFS_MOUNT_RDONLY) in xfs_sync_inodes()
187 for (i = 0; i < mp->m_sb.sb_agcount; i++) { in xfs_sync_inodes()
188 if (!mp->m_perag[i].pag_ici_init) in xfs_sync_inodes()
190 error = xfs_sync_inodes_ag(mp, i, flags); in xfs_sync_inodes()
[all …]
/fs/jfs/
Djfs_metapage.c43 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) argument
44 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) argument
46 static inline void unlock_metapage(struct metapage *mp) in unlock_metapage() argument
48 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
49 wake_up(&mp->wait); in unlock_metapage()
52 static inline void __lock_metapage(struct metapage *mp) in __lock_metapage() argument
56 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
59 if (metapage_locked(mp)) { in __lock_metapage()
60 unlock_page(mp->page); in __lock_metapage()
62 lock_page(mp->page); in __lock_metapage()
[all …]
Djfs_metapage.h58 #define mark_metapage_dirty(mp) set_bit(META_dirty, &(mp)->flag) argument
85 static inline void write_metapage(struct metapage *mp) in write_metapage() argument
87 set_bit(META_dirty, &mp->flag); in write_metapage()
88 release_metapage(mp); in write_metapage()
91 static inline void flush_metapage(struct metapage *mp) in flush_metapage() argument
93 set_bit(META_sync, &mp->flag); in flush_metapage()
94 write_metapage(mp); in flush_metapage()
97 static inline void discard_metapage(struct metapage *mp) in discard_metapage() argument
99 clear_bit(META_dirty, &mp->flag); in discard_metapage()
100 set_bit(META_discard, &mp->flag); in discard_metapage()
[all …]
/fs/xfs/quota/
Dxfs_qm_syscalls.c84 xfs_mount_t *mp, in xfs_qm_quotactl() argument
101 if (XFS_IS_QUOTA_ON(mp)) in xfs_qm_quotactl()
103 if (mp->m_flags & XFS_MOUNT_RDONLY) in xfs_qm_quotactl()
105 return (xfs_qm_scall_trunc_qfiles(mp, in xfs_qm_quotactl()
112 return (xfs_qm_scall_getqstat(mp, (fs_quota_stat_t *)addr)); in xfs_qm_quotactl()
119 if (mp->m_flags & XFS_MOUNT_RDONLY) in xfs_qm_quotactl()
121 return (xfs_qm_scall_quotaon(mp, in xfs_qm_quotactl()
125 if (mp->m_flags & XFS_MOUNT_RDONLY) in xfs_qm_quotactl()
130 return xfs_sync_inodes(mp, SYNC_DELWRI); in xfs_qm_quotactl()
136 if (! XFS_IS_QUOTA_ON(mp)) in xfs_qm_quotactl()
[all …]
Dxfs_quota_priv.h28 #define XFS_QM_DQPERBLK(mp) ((mp)->m_quotainfo->qi_dqperchunk) argument
32 #define XFS_QI_MPLRECLAIMS(mp) ((mp)->m_quotainfo->qi_dqreclaims) argument
33 #define XFS_QI_UQIP(mp) ((mp)->m_quotainfo->qi_uquotaip) argument
34 #define XFS_QI_GQIP(mp) ((mp)->m_quotainfo->qi_gquotaip) argument
35 #define XFS_QI_DQCHUNKLEN(mp) ((mp)->m_quotainfo->qi_dqchunklen) argument
36 #define XFS_QI_BTIMELIMIT(mp) ((mp)->m_quotainfo->qi_btimelimit) argument
37 #define XFS_QI_RTBTIMELIMIT(mp) ((mp)->m_quotainfo->qi_rtbtimelimit) argument
38 #define XFS_QI_ITIMELIMIT(mp) ((mp)->m_quotainfo->qi_itimelimit) argument
39 #define XFS_QI_BWARNLIMIT(mp) ((mp)->m_quotainfo->qi_bwarnlimit) argument
40 #define XFS_QI_RTBWARNLIMIT(mp) ((mp)->m_quotainfo->qi_rtbwarnlimit) argument
[all …]
Dxfs_qm.c215 struct xfs_mount *mp) in xfs_qm_hold_quotafs_ref() argument
245 struct xfs_mount *mp) in xfs_qm_rele_quotafs_ref() argument
294 xfs_mount_t *mp) in xfs_qm_unmount_quotadestroy() argument
296 if (mp->m_quotainfo) in xfs_qm_unmount_quotadestroy()
297 xfs_qm_destroy_quotainfo(mp); in xfs_qm_unmount_quotadestroy()
312 xfs_mount_t *mp) in xfs_qm_mount_quotas() argument
321 if (mp->m_sb.sb_rextents) { in xfs_qm_mount_quotas()
324 mp->m_fsname); in xfs_qm_mount_quotas()
325 mp->m_qflags = 0; in xfs_qm_mount_quotas()
329 ASSERT(XFS_IS_QUOTA_RUNNING(mp)); in xfs_qm_mount_quotas()
[all …]
Dxfs_qm_bhv.c92 xfs_mount_t *mp = ip->i_mount; in xfs_qm_statvfs() local
96 !((mp->m_qflags & (XFS_PQUOTA_ACCT|XFS_OQUOTA_ENFD))) == in xfs_qm_statvfs()
100 if (!xfs_qm_dqget(mp, NULL, ip->i_d.di_projid, XFS_DQ_PROJ, 0, &dqp)) { in xfs_qm_statvfs()
110 xfs_mount_t *mp, in xfs_qm_newmount() argument
120 quotaondisk = xfs_sb_version_hasquota(&mp->m_sb) && in xfs_qm_newmount()
121 (mp->m_sb.sb_qflags & XFS_ALL_QUOTA_ACCT); in xfs_qm_newmount()
124 uquotaondisk = mp->m_sb.sb_qflags & XFS_UQUOTA_ACCT; in xfs_qm_newmount()
125 pquotaondisk = mp->m_sb.sb_qflags & XFS_PQUOTA_ACCT; in xfs_qm_newmount()
126 gquotaondisk = mp->m_sb.sb_qflags & XFS_GQUOTA_ACCT; in xfs_qm_newmount()
136 if (((uquotaondisk && !XFS_IS_UQUOTA_ON(mp)) || in xfs_qm_newmount()
[all …]

12345