diff options
author | phk <phk@FreeBSD.org> | 2005-01-11 09:10:46 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-11 09:10:46 +0000 |
commit | 3c63be9389dfd166a187681cc5cfa7df2d60887a (patch) | |
tree | fe158d53803912f8bfd7e41397510c030a4bd6da /sys/sys/bufobj.h | |
parent | c27dcfcc1709e6211c5d169e24968ec7e817db5e (diff) | |
download | FreeBSD-src-3c63be9389dfd166a187681cc5cfa7df2d60887a.zip FreeBSD-src-3c63be9389dfd166a187681cc5cfa7df2d60887a.tar.gz |
Wrap the bufobj operations in macros: BO_STRATEGY() and BO_WRITE()
Diffstat (limited to 'sys/sys/bufobj.h')
-rw-r--r-- | sys/sys/bufobj.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/bufobj.h b/sys/sys/bufobj.h index b41ed0c..523ba43 100644 --- a/sys/sys/bufobj.h +++ b/sys/sys/bufobj.h @@ -76,6 +76,9 @@ struct buf_ops { b_strategy_t *bop_strategy; }; +#define BO_STRATEGY(bo, bp) ((bo)->bo_ops->bop_strategy((bo), (bp))) +#define BO_WRITE(bo, bp) ((bo)->bo_ops->bop_write((bp))) + struct bufobj { struct mtx *bo_mtx; /* Mutex which protects "i" things */ struct bufv bo_clean; /* i Clean buffers */ |