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>

authored by Anton Salikhmetov and committed by Christoph Hellwig b2837fcf 20b7643d

+14 -14
+3 -6
fs/hfsplus/bnode.c
··· 363 363 tree->leaf_tail = node->prev; 364 364 365 365 /* move down? */ 366 - if (!node->prev && !node->next) { 366 + if (!node->prev && !node->next) 367 367 dprint(DBG_BNODE_MOD, "hfs_btree_del_level\n"); 368 - } 369 368 if (!node->parent) { 370 369 tree->root = 0; 371 370 tree->depth = 0; ··· 391 392 } 392 393 393 394 for (node = tree->node_hash[hfs_bnode_hash(cnid)]; 394 - node; node = node->next_hash) { 395 - if (node->this == cnid) { 395 + node; node = node->next_hash) 396 + if (node->this == cnid) 396 397 return node; 397 - } 398 - } 399 398 return NULL; 400 399 } 401 400
+9 -7
fs/hfsplus/extents.c
··· 397 397 u32 start, len, goal; 398 398 int res; 399 399 400 - if (sbi->alloc_file->i_size * 8 < 401 - sbi->total_blocks - sbi->free_blocks + 8) { 400 + if (sbi->total_blocks - sbi->free_blocks + 8 > 401 + sbi->alloc_file->i_size * 8) { 402 402 /* extend alloc file */ 403 - printk(KERN_ERR "hfs: extend alloc file! (%Lu,%u,%u)\n", 404 - sbi->alloc_file->i_size * 8, 405 - sbi->total_blocks, sbi->free_blocks); 403 + printk(KERN_ERR "hfs: extend alloc file! " 404 + "(%llu,%u,%u)\n", 405 + sbi->alloc_file->i_size * 8, 406 + sbi->total_blocks, sbi->free_blocks); 406 407 return -ENOSPC; 407 408 } 408 409 ··· 491 490 u32 alloc_cnt, blk_cnt, start; 492 491 int res; 493 492 494 - dprint(DBG_INODE, "truncate: %lu, %Lu -> %Lu\n", 495 - inode->i_ino, (long long)hip->phys_size, inode->i_size); 493 + dprint(DBG_INODE, "truncate: %lu, %llu -> %llu\n", 494 + inode->i_ino, (long long)hip->phys_size, 495 + inode->i_size); 496 496 497 497 if (inode->i_size > hip->phys_size) { 498 498 struct address_space *mapping = inode->i_mapping;
+2 -1
fs/hfsplus/hfsplus_fs.h
··· 31 31 #define DBG_MASK (0) 32 32 33 33 #define dprint(flg, fmt, args...) \ 34 - if (flg & DBG_MASK) printk(fmt , ## args) 34 + if (flg & DBG_MASK) \ 35 + printk(fmt , ## args) 35 36 36 37 /* Runtime config options */ 37 38 #define HFSPLUS_DEF_CR_TYPE 0x3F3F3F3F /* '????' */