Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
915ab236 d8983ca0

+3 -3
+3 -3
fs/hfsplus/wrapper.c
··· 24 24 u16 embed_count; 25 25 }; 26 26 27 - /* 28 - * hfsplus_submit_bio - Perfrom block I/O 27 + /** 28 + * hfsplus_submit_bio - Perform block I/O 29 29 * @sb: super block of volume for I/O 30 30 * @sector: block to read or write, for blocks of HFSPLUS_SECTOR_SIZE bytes 31 31 * @buf: buffer for I/O ··· 234 234 sbi->alloc_blksz_shift = 0; 235 235 while ((blocksize >>= 1) != 0) 236 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 240 * Align block size to block offset.