Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/ufs/balloc.c: remove err parameter in ufs_add_fragments

err is used in ufs_new_fragments (ufs_add_fragments only callsite)
not in ufs_add_fragments.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Fabian Frederick and committed by
Linus Torvalds
45641c82 df3d4e7a

+3 -3
+3 -3
fs/ufs/balloc.c
··· 24 24 25 25 #define INVBLOCK ((u64)-1L) 26 26 27 - static u64 ufs_add_fragments(struct inode *, u64, unsigned, unsigned, int *); 27 + static u64 ufs_add_fragments(struct inode *, u64, unsigned, unsigned); 28 28 static u64 ufs_alloc_fragments(struct inode *, unsigned, u64, unsigned, int *); 29 29 static u64 ufs_alloccg_block(struct inode *, struct ufs_cg_private_info *, u64, int *); 30 30 static u64 ufs_bitmap_search (struct super_block *, struct ufs_cg_private_info *, u64, unsigned); ··· 432 432 /* 433 433 * resize block 434 434 */ 435 - result = ufs_add_fragments (inode, tmp, oldcount, newcount, err); 435 + result = ufs_add_fragments(inode, tmp, oldcount, newcount); 436 436 if (result) { 437 437 *err = 0; 438 438 UFS_I(inode)->i_lastfrag = max(UFS_I(inode)->i_lastfrag, ··· 491 491 } 492 492 493 493 static u64 ufs_add_fragments(struct inode *inode, u64 fragment, 494 - unsigned oldcount, unsigned newcount, int *err) 494 + unsigned oldcount, unsigned newcount) 495 495 { 496 496 struct super_block * sb; 497 497 struct ufs_sb_private_info * uspi;