xfs_ag.h (2d6ca8321c354e1cb6f6b1963c4f7bd053d2e272) | xfs_ag.h (36029dee382a20cf515494376ce9f0d5949944eb) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2018 Red Hat, Inc. 4 * All rights reserved. 5 */ 6 7#ifndef __LIBXFS_AG_H 8#define __LIBXFS_AG_H 1 --- 151 unchanged lines hidden (view full) --- 160static inline bool 161xfs_verify_agino_or_null(struct xfs_perag *pag, xfs_agino_t agino) 162{ 163 if (agino == NULLAGINO) 164 return true; 165 return xfs_verify_agino(pag, agino); 166} 167 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2018 Red Hat, Inc. 4 * All rights reserved. 5 */ 6 7#ifndef __LIBXFS_AG_H 8#define __LIBXFS_AG_H 1 --- 151 unchanged lines hidden (view full) --- 160static inline bool 161xfs_verify_agino_or_null(struct xfs_perag *pag, xfs_agino_t agino) 162{ 163 if (agino == NULLAGINO) 164 return true; 165 return xfs_verify_agino(pag, agino); 166} 167 |
168static inline bool 169xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) 170{ 171 return mp->m_sb.sb_logstart > 0 && 172 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); 173} 174 |
|
168/* 169 * Perag iteration APIs 170 */ 171static inline struct xfs_perag * 172xfs_perag_next( 173 struct xfs_perag *pag, 174 xfs_agnumber_t *agno, 175 xfs_agnumber_t end_agno) --- 51 unchanged lines hidden --- | 175/* 176 * Perag iteration APIs 177 */ 178static inline struct xfs_perag * 179xfs_perag_next( 180 struct xfs_perag *pag, 181 xfs_agnumber_t *agno, 182 xfs_agnumber_t end_agno) --- 51 unchanged lines hidden --- |