VirtualBox

Changeset 76746 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jan 9, 2019 4:35:53 PM (6 years ago)
Author:
vboxsync
Message:

vboxsf/linux: We never called SetPageUptodate because we tested on err rather than written for the bytes-actually-written-count.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r76744 r76746  
    840840        kunmap(page);
    841841
    842         if (!PageUptodate(page) && err == PAGE_SIZE)
    843                 SetPageUptodate(page);
    844 
    845842        if (err >= 0) {
     843                if (!PageUptodate(page) && nwritten == PAGE_SIZE)
     844                        SetPageUptodate(page);
     845
    846846                pos += nwritten;
    847847                if (pos > inode->i_size)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette