summaryrefslogtreecommitdiffstats
path: root/net/tgt/patches/010-fallocate.patch
blob: 9d572d6b0033d8ca081c91556c23c61c72111ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- tgt-1.0.48.orig/usr/util.h	2014-06-04 15:03:53.000000000 +0300
+++ tgt-1.0.48/usr/util.h	2014-06-04 15:17:48.548123039 +0300
@@ -212,11 +212,6 @@
  */
 static inline int unmap_file_region(int fd, off_t offset, off_t length)
 {
-#ifdef FALLOC_FL_PUNCH_HOLE
-	if (fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
-			offset, length) == 0)
-		return 0;
-#endif
 	return -1;
 }