Skip to content

Commit

Permalink
fs/hfsplus/wrapper.c: replace min/casting by min_t
Browse files Browse the repository at this point in the history
Also add * before function comments (it was not detected by kernel-doc)

Signed-off-by: Fabian Frederick <[email protected]>
Cc: Vyacheslav Dubeyko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Jun 6, 2014
1 parent d8983ca commit 915ab23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/hfsplus/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -234,7 +234,7 @@ int hfsplus_read_wrapper(struct super_block *sb)
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.
Expand Down

0 comments on commit 915ab23

Please sign in to comment.