mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 15:42:19 +02:00
fix msc MACRO MAX_UNFLUSHED_PACKETS use
This commit is contained in:
parent
53b803632c
commit
ba886aaf43
|
|
@ -1079,7 +1079,7 @@ static int do_write(struct fsg_dev *fsg)
|
|||
amount_left_to_write -= nwritten;
|
||||
fsg->residue -= nwritten;
|
||||
|
||||
#ifdef MAX_UNFLUSHED_BYTES
|
||||
#ifdef MAX_UNFLUSHED_PACKETS
|
||||
curlun->unflushed_packet ++;
|
||||
if (curlun->unflushed_packet >= MAX_UNFLUSHED_PACKETS) {
|
||||
fsync_sub(curlun);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user