]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: add a platform_discard_blocks stub for GNU/kFreebsd
authorChristoph Hellwig <hch@infradead.org>
Fri, 7 May 2010 17:56:34 +0000 (19:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 7 May 2010 17:56:34 +0000 (19:56 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nathan Scott <nathans@aconex.com>
include/gnukfreebsd.h

index 0d8843eb277b66d9a1591da30e9cd479fef3f2f4..1ec291fdf162b9aed3456694f4ddeee1c720dded 100644 (file)
@@ -119,4 +119,10 @@ static __inline__ void platform_uuid_copy(uuid_t *dst, uuid_t *src)
        uuid_copy(*dst, *src);
 }
 
+static __inline__ int
+platform_discard_blocks(int fd, uint64_t start, uint64_t len)
+{
+       return 0;
+}
+
 #endif /* __XFS_KFREEBSD_H__ */