summaryrefslogtreecommitdiff
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2008-12-25 03:33:08 +0300
committerMark Fasheh <mfasheh@suse.com>2009-01-05 19:40:37 +0300
commitdad7d975e4bd893c79fd122105b37b9a1776816a (patch)
treeb9d7b1e89cd3a59754881b2b04bb43838081709b /fs/ocfs2
parenta641dc2a5a1445eb4cb491080dfc41c42a9eb37d (diff)
downloadlinux-dad7d975e4bd893c79fd122105b37b9a1776816a.tar.xz
ocfs2: use min_t in ocfs2_quota_read()
This is preferred to min(). Signed-off-by: Mark Fasheh <mfasheh@suse.com>
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,
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) {