Browse Source

ocfs2: use min_t in ocfs2_quota_read()

This is preferred to min().

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Mark Fasheh 16 years ago
parent
commit
dad7d975e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/ocfs2/quota_global.c

+ 1 - 1
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;
 		len = i_size - off;
 	toread = len;
 	toread = len;
 	while (toread > 0) {
 	while (toread > 0) {
-		tocopy = min((size_t)(sb->s_blocksize - offset), toread);
+		tocopy = min_t(size_t, (sb->s_blocksize - offset), toread);
 		bh = NULL;
 		bh = NULL;
 		err = ocfs2_read_quota_block(gqinode, blk, &bh);
 		err = ocfs2_read_quota_block(gqinode, blk, &bh);
 		if (err) {
 		if (err) {