From: Mark Fasheh Date: Thu, 25 Dec 2008 00:33:08 +0000 (-0800) Subject: ocfs2: use min_t in ocfs2_quota_read() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dad7d975e4bd893c79fd122105b37b9a1776816a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ocfs2: use min_t in ocfs2_quota_read() This is preferred to min(). Signed-off-by: Mark Fasheh --- 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, len = i_size - off; toread = len; while (toread > 0) { - tocopy = min((size_t)(sb->s_blocksize - offset), toread); + tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); bh = NULL; err = ocfs2_read_quota_block(gqinode, blk, &bh); if (err) {