client/Client.cc: In member function 'bool Client::is_quota_bytes_exceeded(Inode*, uint64_t)':
client/Client.cc:10393:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (quota->max_bytes && (rstat->rbytes + new_bytes) > quota->max_bytes)
Signed-off-by: Sage Weil <sage@redhat.com>
return false;
}
-bool Client::is_quota_bytes_exceeded(Inode *in, uint64_t new_bytes)
+bool Client::is_quota_bytes_exceeded(Inode *in, int64_t new_bytes)
{
if (!cct->_conf->client_quota)
return false;
void invalidate_quota_tree(Inode *in);
Inode* get_quota_root(Inode *in);
bool is_quota_files_exceeded(Inode *in);
- bool is_quota_bytes_exceeded(Inode *in, uint64_t new_bytes);
+ bool is_quota_bytes_exceeded(Inode *in, int64_t new_bytes);
bool is_quota_bytes_approaching(Inode *in);
public: