From 92d87e1f677207f9cd8d279168227d216d58ab46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Wed, 17 Nov 2010 17:52:06 +0100 Subject: [PATCH] s3/vfs_tsmsm: remove unneeded cast to off_t MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit "off_t" is wrong on 32 bit systems anyhow ... Autobuild-User: Björn Jacke Autobuild-Date: Thu Nov 18 14:47:59 UTC 2010 on sn-devel-104 --- source3/modules/vfs_tsmsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c index c11e896daa0..95c83de08d2 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; -- 2.11.4.GIT