aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-06 17:36:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:08:10 -0400
commit915ab236d3c491f9bb0f6596d03e25b37f4d5a20 (patch)
tree1fa1819cd7a58e840470783027773a1347760f15 /fs/hfsplus
parentd8983ca0aa86c0bfed13f5232340fe08fe963121 (diff)
fs/hfsplus/wrapper.c: replace min/casting by min_t
Also add * before function comments (it was not detected by kernel-doc) Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Vyacheslav Dubeyko <slava@dubeyko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r--fs/hfsplus/wrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/hfsplus/wrapper.c b/fs/hfsplus/wrapper.c
index 3f999649587f..284c90f943a1 100644
--- a/fs/hfsplus/wrapper.c
+++ b/fs/hfsplus/wrapper.c
@@ -24,8 +24,8 @@ struct hfsplus_wd {
24 u16 embed_count; 24 u16 embed_count;
25}; 25};
26 26
27/* 27/**
28 * hfsplus_submit_bio - Perfrom block I/O 28 * hfsplus_submit_bio - Perform block I/O
29 * @sb: super block of volume for I/O 29 * @sb: super block of volume for I/O
30 * @sector: block to read or write, for blocks of HFSPLUS_SECTOR_SIZE bytes 30 * @sector: block to read or write, for blocks of HFSPLUS_SECTOR_SIZE bytes
31 * @buf: buffer for I/O 31 * @buf: buffer for I/O
@@ -234,7 +234,7 @@ reread:
234 sbi->alloc_blksz_shift = 0; 234 sbi->alloc_blksz_shift = 0;
235 while ((blocksize >>= 1) != 0) 235 while ((blocksize >>= 1) != 0)
236 sbi->alloc_blksz_shift++; 236 sbi->alloc_blksz_shift++;
237 blocksize = min(sbi->alloc_blksz, (u32)PAGE_SIZE); 237 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE);
238 238
239 /* 239 /*
240 * Align block size to block offset. 240 * Align block size to block offset.