t/zbd: avoid test case 31 failure with small devices
[fio.git] / filelock.c
index cc98aafc07852a369e1db32ed7f50b8b2ff31e7d..fd3a6b29e422830f62d35234715b290d57713908 100644 (file)
@@ -22,7 +22,7 @@ struct fio_filelock {
        unsigned int references;
 };
 
-#define MAX_FILELOCKS  128
+#define MAX_FILELOCKS  1024
        
 static struct filelock_data {
        struct flist_head list;
@@ -179,7 +179,7 @@ static bool __fio_lock_file(const char *fname, int trylock)
        fio_sem_up(&fld->lock);
 
        if (!ff) {
-               assert(!trylock);
+               assert(trylock);
                return true;
        }