Hook up the file hashing

Add on file open, remove on close.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c
index bae7526..e2c71cd 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -9,6 +9,7 @@
 
 #include "fio.h"
 #include "smalloc.h"
+#include "filehash.h"
 
 static int root_warn;
 
@@ -215,6 +216,9 @@
 	int ret = 0;
 
 	dprint(FD_FILE, "fd close %s\n", f->file_name);
+
+	remove_file_hash(f);
+
 	if (close(f->fd) < 0)
 		ret = errno;
 
@@ -292,6 +296,8 @@
 	if (get_file_size(td, f))
 		goto err;
 
+	add_file_hash(f);
+
 	return 0;
 err:
 	close(f->fd);