VirtualBox

Changeset 77505 in vbox for trunk/src


Ignore:
Timestamp:
Feb 28, 2019 1:06:19 PM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Two TTL compare fixes. bugref:9172

File:
1 edited

Legend:

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

    r77503 r77505  
    349349                if (   !fForced
    350350                    && !sf_i->force_restat
    351                     && jiffies - sf_i->ts_up_to_date <= sf_g->ttl)
     351                    && jiffies - sf_i->ts_up_to_date < sf_g->ttl)
    352352                        err = 0;
    353353                else {
     
    10261026                        unsigned long const  cJiffiesAge = sf_dentry_get_update_jiffies(dentry) - jiffies;
    10271027                        struct sf_glob_info *sf_g        = GET_GLOB_INFO(dentry->d_sb);
    1028                         if (cJiffiesAge <= sf_g->ttl) {
     1028                        if (cJiffiesAge < sf_g->ttl) {
    10291029                                SFLOGFLOW(("sf_dentry_revalidate: age: %lu vs. TTL %lu -> 1\n", cJiffiesAge, sf_g->ttl));
    10301030                                rc = 1;
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