summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_tsmsm.c
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-11-17 17:52:06 +0100
committerBjoern Jacke <bj@sernet.de>2010-11-18 14:47:59 +0000
commit92d87e1f677207f9cd8d279168227d216d58ab46 (patch)
tree5c43ae62bfa83f6b848d3d466457f2b9cb8abe7d /source3/modules/vfs_tsmsm.c
parentd5d08d3b50592f8950ab68c654b2116e704d0f30 (diff)
downloadsamba-92d87e1f677207f9cd8d279168227d216d58ab46.tar.gz
samba-92d87e1f677207f9cd8d279168227d216d58ab46.tar.bz2
samba-92d87e1f677207f9cd8d279168227d216d58ab46.zip
s3/vfs_tsmsm: remove unneeded cast to off_t
"off_t" is wrong on 32 bit systems anyhow ... Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Nov 18 14:47:59 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/modules/vfs_tsmsm.c')
-rw-r--r--source3/modules/vfs_tsmsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c
index c11e896daa..95c83de08d 100644
--- a/source3/modules/vfs_tsmsm.c
+++ b/source3/modules/vfs_tsmsm.c
@@ -161,7 +161,7 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle,
/* if the file has more than FILE_IS_ONLINE_RATIO of blocks available,
then assume it is not offline (it may not be 100%, as it could be sparse) */
- if (512 * (off_t)stbuf->st_ex_blocks >=
+ if (512 * stbuf->st_ex_blocks >=
stbuf->st_ex_size * tsmd->online_ratio) {
DEBUG(10,("%s not offline: st_blocks=%llu st_size=%llu "
"online_ratio=%.2f\n", path,
@@ -266,7 +266,7 @@ static bool tsmsm_aio_force(struct vfs_handle_struct *handle, struct files_struc
DEBUG(10,("tsmsm_aio_force st_blocks=%llu st_size=%llu "
"online_ratio=%.2f\n", (unsigned long long)sbuf.st_ex_blocks,
(unsigned long long)sbuf.st_ex_size, tsmd->online_ratio));
- return !(512 * (off_t)sbuf.st_ex_blocks >=
+ return !(512 * sbuf.st_ex_blocks >=
sbuf.st_ex_size * tsmd->online_ratio);
}
return false;