Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195794
b: refs/heads/master
c: 8511998
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder committed May 19, 2010
1 parent 34174e0 commit 24103e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6881a229f66f74e4e0a73504389695213987955b
refs/heads/master: 8511998baaf541710f457315958cef0d0a7864a1
9 changes: 4 additions & 5 deletions trunk/fs/xfs/xfs_log_recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ STATIC void xlog_recover_check_summary(xlog_t *);
* Sector aligned buffer routines for buffer create/read/write/access
*/

#define XLOG_SECTOR_ROUNDUP_BBCOUNT(log, bbs) \
( ((log)->l_sectbb_mask && (bbs & (log)->l_sectbb_mask)) ? \
((bbs + (log)->l_sectbb_mask + 1) & ~(log)->l_sectbb_mask) : (bbs) )
#define XLOG_SECTOR_ROUNDDOWN_BLKNO(log, bno) ((bno) & ~(log)->l_sectbb_mask)

/* Number of basic blocks in a log sector */
#define xlog_sectbb(log) (1 << (log)->l_sectbb_log)

#define XLOG_SECTOR_ROUNDUP_BBCOUNT(log, bbs) round_up((bbs), xlog_sectbb(log))
#define XLOG_SECTOR_ROUNDDOWN_BLKNO(log, bno) \
round_down((bno), xlog_sectbb(log))

STATIC xfs_buf_t *
xlog_get_bp(
xlog_t *log,
Expand Down

0 comments on commit 24103e3

Please sign in to comment.