Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151224431
D27081.id79150.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
D27081.id79150.diff
View Options
Index: sys/ufs/ffs/ffs_softdep.c
===================================================================
--- sys/ufs/ffs/ffs_softdep.c
+++ sys/ufs/ffs/ffs_softdep.c
@@ -1464,7 +1464,7 @@
}
static void
-softdep_send_speedup(struct ufsmount *ump, size_t shortage, u_int flags)
+softdep_send_speedup(struct ufsmount *ump, off_t shortage, u_int flags)
{
struct buf *bp;
@@ -1474,7 +1474,7 @@
bp = malloc(sizeof(*bp), M_TRIM, M_WAITOK | M_ZERO);
bp->b_iocmd = BIO_SPEEDUP;
bp->b_ioflags = flags;
- bp->b_bcount = shortage;
+ bp->b_bcount = omin(shortage, LONG_MAX);
g_vfs_strategy(ump->um_bo, bp);
bufwait(bp);
free(bp, M_TRIM);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 11:29 PM (8 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31055252
Default Alt Text
D27081.id79150.diff (641 B)
Attached To
Mode
D27081: ffs: Clamp BIO_SPEEDUP length
Attached
Detach File
Event Timeline
Log In to Comment