~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to fs/xfs/xfs_btree.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
                                union xfs_btree_rec *r1,
200
200
                                union xfs_btree_rec *r2);
201
201
#endif
202
 
 
203
 
        /* btree tracing */
204
 
#ifdef XFS_BTREE_TRACE
205
 
        void            (*trace_enter)(struct xfs_btree_cur *, const char *,
206
 
                                       char *, int, int, __psunsigned_t,
207
 
                                       __psunsigned_t, __psunsigned_t,
208
 
                                       __psunsigned_t, __psunsigned_t,
209
 
                                       __psunsigned_t, __psunsigned_t,
210
 
                                       __psunsigned_t, __psunsigned_t,
211
 
                                       __psunsigned_t, __psunsigned_t);
212
 
        void            (*trace_cursor)(struct xfs_btree_cur *, __uint32_t *,
213
 
                                        __uint64_t *, __uint64_t *);
214
 
        void            (*trace_key)(struct xfs_btree_cur *,
215
 
                                     union xfs_btree_key *, __uint64_t *,
216
 
                                     __uint64_t *);
217
 
        void            (*trace_record)(struct xfs_btree_cur *,
218
 
                                        union xfs_btree_rec *, __uint64_t *,
219
 
                                        __uint64_t *, __uint64_t *);
220
 
#endif
221
202
};
222
203
 
223
204
/*
281
262
/*
282
263
 * Convert from buffer to btree block header.
283
264
 */
284
 
#define XFS_BUF_TO_BLOCK(bp)    ((struct xfs_btree_block *)XFS_BUF_PTR(bp))
 
265
#define XFS_BUF_TO_BLOCK(bp)    ((struct xfs_btree_block *)((bp)->b_addr))
285
266
 
286
267
 
287
268
/*
452
433
        (XFS_FSB_TO_AGNO(mp, fsb) < mp->m_sb.sb_agcount && \
453
434
                XFS_FSB_TO_AGBNO(mp, fsb) < mp->m_sb.sb_agblocks)
454
435
 
 
436
/*
 
437
 * Trace hooks.  Currently not implemented as they need to be ported
 
438
 * over to the generic tracing functionality, which is some effort.
 
439
 *
 
440
 * i,j = integer (32 bit)
 
441
 * b = btree block buffer (xfs_buf_t)
 
442
 * p = btree ptr
 
443
 * r = btree record
 
444
 * k = btree key
 
445
 */
 
446
#define XFS_BTREE_TRACE_ARGBI(c, b, i)
 
447
#define XFS_BTREE_TRACE_ARGBII(c, b, i, j)
 
448
#define XFS_BTREE_TRACE_ARGI(c, i)
 
449
#define XFS_BTREE_TRACE_ARGIPK(c, i, p, s)
 
450
#define XFS_BTREE_TRACE_ARGIPR(c, i, p, r)
 
451
#define XFS_BTREE_TRACE_ARGIK(c, i, k)
 
452
#define XFS_BTREE_TRACE_ARGR(c, r)
 
453
#define XFS_BTREE_TRACE_CURSOR(c, t)
 
454
 
455
455
#endif  /* __XFS_BTREE_H__ */