aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/quota_global.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
index 444aa5a467fb..6aff8f2d3e49 100644
--- a/fs/ocfs2/quota_global.c
+++ b/fs/ocfs2/quota_global.c
@@ -167,7 +167,7 @@ ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data,
167 len = i_size - off; 167 len = i_size - off;
168 toread = len; 168 toread = len;
169 while (toread > 0) { 169 while (toread > 0) {
170 tocopy = min((size_t)(sb->s_blocksize - offset), toread); 170 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread);
171 bh = NULL; 171 bh = NULL;
172 err = ocfs2_read_quota_block(gqinode, blk, &bh); 172 err = ocfs2_read_quota_block(gqinode, blk, &bh);
173 if (err) { 173 if (err) {