s3/vfs_tsmsm: remove unneeded cast to off_t
authorBjörn Jacke <bj@sernet.de>
Wed, 17 Nov 2010 16:52:06 +0000 (17:52 +0100)
committerBjoern Jacke <bj@sernet.de>
Thu, 18 Nov 2010 14:47:59 +0000 (14:47 +0000)
"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

source3/modules/vfs_tsmsm.c

index c11e896daa0420e9a838e4418f267aa12df855b2..95c83de08d28b4ec3355c87ac97860b46a42f27c 100644 (file)
@@ -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;