2 * Copyright (c) 2014 Red Hat, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #include "xfs_shared.h"
21 #include "xfs_format.h"
22 #include "xfs_log_format.h"
23 #include "xfs_trans_resv.h"
26 #include "xfs_mount.h"
27 #include "xfs_defer.h"
28 #include "xfs_da_format.h"
29 #include "xfs_da_btree.h"
30 #include "xfs_btree.h"
31 #include "xfs_trans.h"
32 #include "xfs_alloc.h"
34 #include "xfs_trans_space.h"
35 #include "xfs_trace.h"
36 #include "xfs_error.h"
37 #include "xfs_extent_busy.h"
46 struct xfs_owner_info *oinfo)
48 struct xfs_mount *mp = tp->t_mountp;
51 if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
54 trace_xfs_rmap_unmap(mp, agno, bno, len, false, oinfo);
57 trace_xfs_rmap_unmap_done(mp, agno, bno, len, false, oinfo);
61 trace_xfs_rmap_unmap_error(mp, agno, error, _RET_IP_);
72 struct xfs_owner_info *oinfo)
74 struct xfs_mount *mp = tp->t_mountp;
77 if (!xfs_sb_version_hasrmapbt(&mp->m_sb))
80 trace_xfs_rmap_map(mp, agno, bno, len, false, oinfo);
83 trace_xfs_rmap_map_done(mp, agno, bno, len, false, oinfo);
87 trace_xfs_rmap_map_error(mp, agno, error, _RET_IP_);