libxfs.h   libxfs.h 
skipping to change at line 227 skipping to change at line 227
/* /*
* Simple I/O interface * Simple I/O interface
*/ */
typedef struct xfs_buf { typedef struct xfs_buf {
struct cache_node b_node; struct cache_node b_node;
unsigned int b_flags; unsigned int b_flags;
xfs_daddr_t b_blkno; xfs_daddr_t b_blkno;
unsigned b_bcount; unsigned b_bcount;
dev_t b_dev; dev_t b_dev;
pthread_mutex_t b_lock; pthread_mutex_t b_lock;
pthread_t b_holder;
unsigned int b_recur;
void *b_fsprivate; void *b_fsprivate;
void *b_fsprivate2; void *b_fsprivate2;
void *b_fsprivate3; void *b_fsprivate3;
char *b_addr; char *b_addr;
int b_error; int b_error;
#ifdef XFS_BUF_TRACING #ifdef XFS_BUF_TRACING
struct list_head b_lock_list; struct list_head b_lock_list;
const char *b_func; const char *b_func;
const char *b_file; const char *b_file;
int b_line; int b_line;
skipping to change at line 280 skipping to change at line 282
(struct cache_node *)(bp), \ (struct cache_node *)(bp), \
(pri)) (pri))
#define XFS_BUF_PRIORITY(bp) (cache_node_get_priority( \ #define XFS_BUF_PRIORITY(bp) (cache_node_get_priority( \
(struct cache_node *)(bp))) (struct cache_node *)(bp)))
/* Buffer Cache Interfaces */ /* Buffer Cache Interfaces */
extern struct cache *libxfs_bcache; extern struct cache *libxfs_bcache;
extern struct cache_operations libxfs_bcache_operations; extern struct cache_operations libxfs_bcache_operations;
#define LIBXFS_GETBUF_TRYLOCK (1 << 0)
#ifdef XFS_BUF_TRACING #ifdef XFS_BUF_TRACING
#define libxfs_readbuf(dev, daddr, len, flags) \ #define libxfs_readbuf(dev, daddr, len, flags) \
libxfs_trace_readbuf(__FUNCTION__, __FILE__, __LINE__, (dev) libxfs_trace_readbuf(__FUNCTION__, __FILE__, __LINE__, \
, (daddr), (len), (flags)) (dev), (daddr), (len), (flags))
#define libxfs_writebuf(buf, flags) \ #define libxfs_writebuf(buf, flags) \
libxfs_trace_writebuf(__FUNCTION__, __FILE__, __LINE__, (buf libxfs_trace_writebuf(__FUNCTION__, __FILE__, __LINE__, \
), (flags)) (buf), (flags))
#define libxfs_getbuf(dev, daddr, len) \ #define libxfs_getbuf(dev, daddr, len) \
libxfs_trace_getbuf(__FUNCTION__, __FILE__, __LINE__, (dev), libxfs_trace_getbuf(__FUNCTION__, __FILE__, __LINE__, \
(daddr), (len)) (dev), (daddr), (len))
#define libxfs_getbuf_flags(dev, daddr, len, flags) \
libxfs_trace_getbuf(__FUNCTION__, __FILE__, __LINE__, \
(dev), (daddr), (len), (flags))
#define libxfs_putbuf(buf) \ #define libxfs_putbuf(buf) \
libxfs_trace_putbuf(__FUNCTION__, __FILE__, __LINE__, (buf)) libxfs_trace_putbuf(__FUNCTION__, __FILE__, __LINE__, (buf))
extern xfs_buf_t *libxfs_trace_readbuf(const char *, const char *, int, dev extern xfs_buf_t *libxfs_trace_readbuf(const char *, const char *, int,
_t, xfs_daddr_t, int, int); dev_t, xfs_daddr_t, int, int);
extern int libxfs_trace_writebuf(const char *, const char *, int, xfs_b extern int libxfs_trace_writebuf(const char *, const char *, int,
uf_t *, int); xfs_buf_t *, int);
extern xfs_buf_t *libxfs_trace_getbuf(const char *, const char *, int, dev_ t, xfs_daddr_t, int); extern xfs_buf_t *libxfs_trace_getbuf(const char *, const char *, int, dev_ t, xfs_daddr_t, int);
extern void libxfs_trace_putbuf (const char *, const char *, int, xfs_bu extern xfs_buf_t *libxfs_trace_getbuf_flags(const char *, const char *, int
f_t *); ,
dev_t, xfs_daddr_t, int, unsigned int);
extern void libxfs_trace_putbuf (const char *, const char *, int,
xfs_buf_t *);
#else #else
extern xfs_buf_t *libxfs_readbuf(dev_t, xfs_daddr_t, int, int); extern xfs_buf_t *libxfs_readbuf(dev_t, xfs_daddr_t, int, int);
extern int libxfs_writebuf(xfs_buf_t *, int); extern int libxfs_writebuf(xfs_buf_t *, int);
extern xfs_buf_t *libxfs_getbuf(dev_t, xfs_daddr_t, int); extern xfs_buf_t *libxfs_getbuf(dev_t, xfs_daddr_t, int);
extern xfs_buf_t *libxfs_getbuf_flags(dev_t, xfs_daddr_t, int, unsigned int );
extern void libxfs_putbuf (xfs_buf_t *); extern void libxfs_putbuf (xfs_buf_t *);
#endif #endif
extern xfs_buf_t *libxfs_getsb(xfs_mount_t *, int); extern xfs_buf_t *libxfs_getsb(xfs_mount_t *, int);
extern void libxfs_bcache_purge(void); extern void libxfs_bcache_purge(void);
extern void libxfs_bcache_flush(void); extern void libxfs_bcache_flush(void);
extern void libxfs_purgebuf(xfs_buf_t *); extern void libxfs_purgebuf(xfs_buf_t *);
extern int libxfs_bcache_overflowed(void); extern int libxfs_bcache_overflowed(void);
extern int libxfs_bcache_usage(void); extern int libxfs_bcache_usage(void);
skipping to change at line 485 skipping to change at line 501
#include <xfs/xfs_ialloc.h> #include <xfs/xfs_ialloc.h>
#include <xfs/xfs_rtalloc.h> #include <xfs/xfs_rtalloc.h>
#include <xfs/xfs_attr_leaf.h> #include <xfs/xfs_attr_leaf.h>
#include <xfs/xfs_quota.h> #include <xfs/xfs_quota.h>
#include <xfs/xfs_trans_space.h> #include <xfs/xfs_trans_space.h>
#include <xfs/xfs_log.h> #include <xfs/xfs_log.h>
#include <xfs/xfs_log_priv.h> #include <xfs/xfs_log_priv.h>
#define XFS_INOBT_CLR_FREE(rp,i) ((rp)->ir_free &= ~XFS_INOBT_MASK(i)
)
#define XFS_INOBT_SET_FREE(rp,i) ((rp)->ir_free |= XFS_INOBT_MASK(i))
#define XFS_INOBT_IS_FREE_DISK(rp,i) \ #define XFS_INOBT_IS_FREE_DISK(rp,i) \
((be64_to_cpu((rp)->ir_free) & XFS_INOBT_MASK(i)) != 0) ((be64_to_cpu((rp)->ir_free) & XFS_INOBT_MASK(i)) != 0)
/* /*
* public xfs kernel routines to be called as libxfs_* * public xfs kernel routines to be called as libxfs_*
*/ */
/* xfs_alloc.c */ /* xfs_alloc.c */
int libxfs_alloc_fix_freelist(xfs_alloc_arg_t *, int); int libxfs_alloc_fix_freelist(xfs_alloc_arg_t *, int);
 End of changes. 10 change blocks. 
16 lines changed or deleted 24 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/