Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187195
b: refs/heads/master
c: ad25ad9
h: refs/heads/master
i:
  187193: 13d54a9
  187191: 809a33f
v: v3
  • Loading branch information
Evgeniy Dushistov authored and Linus Torvalds committed Mar 12, 2010
1 parent 39c37d1 commit 11d79b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: b3a0fd4d877fe7692901b5867ba7cbd3f6d19d22
refs/heads/master: ad25ad979a309963e580015d57e4ec7da72bb7d4
9 changes: 7 additions & 2 deletions trunk/fs/ufs/ufs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,16 @@ typedef __u16 __bitwise __fs16;
*/
#define ufs_cbtocylno(bno) \
((bno) * uspi->s_nspf / uspi->s_spc)
#define ufs_cbtorpos(bno) \
#define ufs_cbtorpos(bno) \
((UFS_SB(sb)->s_flags & UFS_CG_SUN) ? \
(((((bno) * uspi->s_nspf % uspi->s_spc) % \
uspi->s_nsect) * \
uspi->s_nrpos) / uspi->s_nsect) \
: \
((((bno) * uspi->s_nspf % uspi->s_spc / uspi->s_nsect \
* uspi->s_trackskew + (bno) * uspi->s_nspf % uspi->s_spc \
% uspi->s_nsect * uspi->s_interleave) % uspi->s_nsect \
* uspi->s_nrpos) / uspi->s_npsect)
* uspi->s_nrpos) / uspi->s_npsect))

/*
* The following macros optimize certain frequently calculated
Expand Down

0 comments on commit 11d79b5

Please sign in to comment.