|
|
| version 1.38, 2008/05/30 04:31:27 | version 1.39, 2008/09/05 04:10:01 |
|---|---|
| Line 393 libxfs_getbuf(dev_t device, xfs_daddr_t | Line 393 libxfs_getbuf(dev_t device, xfs_daddr_t |
| if (use_xfs_buf_lock) | if (use_xfs_buf_lock) |
| pthread_mutex_lock(&bp->b_lock); | pthread_mutex_lock(&bp->b_lock); |
| cache_node_set_priority(libxfs_bcache, (struct cache_node *)bp, | cache_node_set_priority(libxfs_bcache, (struct cache_node *)bp, |
| cache_node_get_priority((struct cache_node *)bp) - 4); | cache_node_get_priority((struct cache_node *)bp) - |
| CACHE_PREFETCH_PRIORITY); | |
| #ifdef XFS_BUF_TRACING | #ifdef XFS_BUF_TRACING |
| pthread_mutex_lock(&libxfs_bcache->c_mutex); | pthread_mutex_lock(&libxfs_bcache->c_mutex); |
| lock_buf_count++; | lock_buf_count++; |
| Line 422 libxfs_putbuf(xfs_buf_t *bp) | Line 423 libxfs_putbuf(xfs_buf_t *bp) |
| #endif | #endif |
| if (use_xfs_buf_lock) | if (use_xfs_buf_lock) |
| pthread_mutex_unlock(&bp->b_lock); | pthread_mutex_unlock(&bp->b_lock); |
| cache_node_put((struct cache_node *)bp); | cache_node_put(libxfs_bcache, (struct cache_node *)bp); |
| } | } |
| void | void |
| Line 794 libxfs_iget(xfs_mount_t *mp, xfs_trans_t | Line 795 libxfs_iget(xfs_mount_t *mp, xfs_trans_t |
| void | void |
| libxfs_iput(xfs_inode_t *ip, uint lock_flags) | libxfs_iput(xfs_inode_t *ip, uint lock_flags) |
| { | { |
| cache_node_put((struct cache_node *)ip); | cache_node_put(libxfs_icache, (struct cache_node *)ip); |
| } | } |
| static struct cache_node * | static struct cache_node * |