mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
xfs: add a perag to the btree cursor
Which will eventually completely replace the agno in it. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
parent
58d43a7e32
commit
be9fb17d88
21 changed files with 119 additions and 70 deletions
|
@ -377,6 +377,8 @@ xfs_btree_del_cursor(
|
|||
XFS_FORCED_SHUTDOWN(cur->bc_mp));
|
||||
if (unlikely(cur->bc_flags & XFS_BTREE_STAGING))
|
||||
kmem_free(cur->bc_ops);
|
||||
if (!(cur->bc_flags & XFS_BTREE_LONG_PTRS) && cur->bc_ag.pag)
|
||||
xfs_perag_put(cur->bc_ag.pag);
|
||||
kmem_cache_free(xfs_btree_cur_zone, cur);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue