diff options
author | scottl <scottl@FreeBSD.org> | 2003-05-04 07:40:29 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-05-04 07:40:29 +0000 |
commit | a8f90ab7cb1b27c25cfdd2a159cb5dd18ff879f5 (patch) | |
tree | f9e189198d3c93ea823017c53f469d184f179505 /sys/fs/udf | |
parent | 8ab5276136e17b2031ec58d46b60b9aa3d31970c (diff) | |
download | FreeBSD-src-a8f90ab7cb1b27c25cfdd2a159cb5dd18ff879f5.zip FreeBSD-src-a8f90ab7cb1b27c25cfdd2a159cb5dd18ff879f5.tar.gz |
Add a missing __inline. Strange that gcc never complained about it.
Implement udf_readlblks() in terms of RDSECTOR.
Diffstat (limited to 'sys/fs/udf')
-rw-r--r-- | sys/fs/udf/udf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/udf/udf.h b/sys/fs/udf/udf.h index 3fde1a3..f214c14 100644 --- a/sys/fs/udf/udf.h +++ b/sys/fs/udf/udf.h @@ -91,8 +91,8 @@ MALLOC_DECLARE(M_UDFFENTRY); static __inline int udf_readlblks(struct udf_mnt *udfmp, int sector, int size, struct buf **bp) { - return (bread(udfmp->im_devvp, sector << (udfmp->bshift - DEV_BSHIFT), - (size + udfmp->bmask) & ~udfmp->bmask, NOCRED, bp)); + return (RDSECTOR(udfmp->im_devvp, sector, + (size + udfmp->bmask) & ~udfmp->bmask, bp)); } static __inline int @@ -116,7 +116,7 @@ udf_readalblks(struct udf_mnt *udfmp, int lsector, int size, struct buf **bp) * XXX Assumes the ICB is a long_ad. This struct is compatible with short_ad, * but not ext_ad. */ -static ino_t +static __inline ino_t udf_getid(struct long_ad *icb) { return (icb->loc.lb_num); |