projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a641dc2
)
ocfs2: use min_t in ocfs2_quota_read()
author
Mark Fasheh
<mfasheh@suse.com>
Thu, 25 Dec 2008 00:33:08 +0000
(16:33 -0800)
committer
Mark Fasheh
<mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:37 +0000
(08:40 -0800)
This is preferred to min().
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/quota_global.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/quota_global.c
b/fs/ocfs2/quota_global.c
index 444aa5a467fbdfb8b110923848f9d17e911a01d5..6aff8f2d3e49fde3d5caa0d949b8a7ecb9f14f54 100644
(file)
--- 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) {