From: Christoph Hellwig Date: Fri, 7 May 2010 17:56:34 +0000 (+0200) Subject: xfsprogs: add a platform_discard_blocks stub for GNU/kFreebsd X-Git-Tag: v3.1.3~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38393d276f379f17747c96f10b7f70106eeab950;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: add a platform_discard_blocks stub for GNU/kFreebsd Signed-off-by: Christoph Hellwig Reviewed-by: Nathan Scott --- diff --git a/include/gnukfreebsd.h b/include/gnukfreebsd.h index 0d8843eb2..1ec291fdf 100644 --- a/include/gnukfreebsd.h +++ b/include/gnukfreebsd.h @@ -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__ */