]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fs/hfsplus/wrapper.c: replace min/casting by min_t
authorFabian Frederick <fabf@skynet.be>
Sat, 17 May 2014 13:18:51 +0000 (23:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:18:51 +0000 (23:18 +1000)
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>
fs/hfsplus/wrapper.c

index 3f999649587ff8185ebd326c3672acee83542de4..284c90f943a18725cae569198d8b56b47fd9d718 100644 (file)
@@ -24,8 +24,8 @@ struct hfsplus_wd {
        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
  * @sector: block to read or write, for blocks of HFSPLUS_SECTOR_SIZE bytes
  * @buf: buffer for I/O
@@ -234,7 +234,7 @@ reread:
        sbi->alloc_blksz_shift = 0;
        while ((blocksize >>= 1) != 0)
                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.