diff options
author | Anton Salikhmetov <alexo@tuxera.com> | 2010-12-16 11:08:41 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@tuxera.com> | 2010-12-16 12:08:46 -0500 |
commit | b2837fcf4994e699a4def002e26f274d95b387c1 (patch) | |
tree | fcb2f4e91b11746972e9f1abd9e4b70e7573286c /fs/hfsplus/extents.c | |
parent | 20b7643d8ee44254fc972d42655bace81e7ab50a (diff) |
hfsplus: %L-to-%ll, macro correction, and remove unneeded braces
Clean-up based on checkpatch.pl report against unnecessary braces
(`{' and `}'), non-standard format option %Lu (%llu recommended)
as well as one trailing statement in a macro definition which
should have been on the next line.
Signed-off-by: Anton Salikhmetov <alexo@tuxera.com>
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
Diffstat (limited to 'fs/hfsplus/extents.c')
-rw-r--r-- | fs/hfsplus/extents.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/fs/hfsplus/extents.c b/fs/hfsplus/extents.c index 4b693b5b6230..52a0bcaa7b6d 100644 --- a/fs/hfsplus/extents.c +++ b/fs/hfsplus/extents.c | |||
@@ -397,12 +397,13 @@ int hfsplus_file_extend(struct inode *inode) | |||
397 | u32 start, len, goal; | 397 | u32 start, len, goal; |
398 | int res; | 398 | int res; |
399 | 399 | ||
400 | if (sbi->alloc_file->i_size * 8 < | 400 | if (sbi->total_blocks - sbi->free_blocks + 8 > |
401 | sbi->total_blocks - sbi->free_blocks + 8) { | 401 | sbi->alloc_file->i_size * 8) { |
402 | /* extend alloc file */ | 402 | /* extend alloc file */ |
403 | printk(KERN_ERR "hfs: extend alloc file! (%Lu,%u,%u)\n", | 403 | printk(KERN_ERR "hfs: extend alloc file! " |
404 | sbi->alloc_file->i_size * 8, | 404 | "(%llu,%u,%u)\n", |
405 | sbi->total_blocks, sbi->free_blocks); | 405 | sbi->alloc_file->i_size * 8, |
406 | sbi->total_blocks, sbi->free_blocks); | ||
406 | return -ENOSPC; | 407 | return -ENOSPC; |
407 | } | 408 | } |
408 | 409 | ||
@@ -490,8 +491,9 @@ void hfsplus_file_truncate(struct inode *inode) | |||
490 | u32 alloc_cnt, blk_cnt, start; | 491 | u32 alloc_cnt, blk_cnt, start; |
491 | int res; | 492 | int res; |
492 | 493 | ||
493 | dprint(DBG_INODE, "truncate: %lu, %Lu -> %Lu\n", | 494 | dprint(DBG_INODE, "truncate: %lu, %llu -> %llu\n", |
494 | inode->i_ino, (long long)hip->phys_size, inode->i_size); | 495 | inode->i_ino, (long long)hip->phys_size, |
496 | inode->i_size); | ||
495 | 497 | ||
496 | if (inode->i_size > hip->phys_size) { | 498 | if (inode->i_size > hip->phys_size) { |
497 | struct address_space *mapping = inode->i_mapping; | 499 | struct address_space *mapping = inode->i_mapping; |