Commit 915ab236 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

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: default avatarFabian Frederick <fabf@skynet.be>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d8983ca0
...@@ -24,8 +24,8 @@ struct hfsplus_wd { ...@@ -24,8 +24,8 @@ struct hfsplus_wd {
u16 embed_count; u16 embed_count;
}; };
/* /**
* hfsplus_submit_bio - Perfrom block I/O * hfsplus_submit_bio - Perform block I/O
* @sb: super block of volume for I/O * @sb: super block of volume for I/O
* @sector: block to read or write, for blocks of HFSPLUS_SECTOR_SIZE bytes * @sector: block to read or write, for blocks of HFSPLUS_SECTOR_SIZE bytes
* @buf: buffer for I/O * @buf: buffer for I/O
...@@ -234,7 +234,7 @@ int hfsplus_read_wrapper(struct super_block *sb) ...@@ -234,7 +234,7 @@ int hfsplus_read_wrapper(struct super_block *sb)
sbi->alloc_blksz_shift = 0; sbi->alloc_blksz_shift = 0;
while ((blocksize >>= 1) != 0) while ((blocksize >>= 1) != 0)
sbi->alloc_blksz_shift++; sbi->alloc_blksz_shift++;
blocksize = min(sbi->alloc_blksz, (u32)PAGE_SIZE); blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE);
/* /*
* Align block size to block offset. * Align block size to block offset.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment