Skip to content

Commit 45641c8

Browse files
Fabian Fredericktorvalds
authored andcommitted
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>
1 parent df3d4e7 commit 45641c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎fs/ufs/balloc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#define INVBLOCK ((u64)-1L)
2626

27-
static u64 ufs_add_fragments(struct inode *, u64, unsigned, unsigned, int *);
27+
static u64 ufs_add_fragments(struct inode *, u64, unsigned, unsigned);
2828
static u64 ufs_alloc_fragments(struct inode *, unsigned, u64, unsigned, int *);
2929
static u64 ufs_alloccg_block(struct inode *, struct ufs_cg_private_info *, u64, int *);
3030
static u64 ufs_bitmap_search (struct super_block *, struct ufs_cg_private_info *, u64, unsigned);
@@ -432,7 +432,7 @@ u64 ufs_new_fragments(struct inode *inode, void *p, u64 fragment,
432432
/*
433433
* resize block
434434
*/
435-
result = ufs_add_fragments (inode, tmp, oldcount, newcount, err);
435+
result = ufs_add_fragments(inode, tmp, oldcount, newcount);
436436
if (result) {
437437
*err = 0;
438438
UFS_I(inode)->i_lastfrag = max(UFS_I(inode)->i_lastfrag,
@@ -491,7 +491,7 @@ u64 ufs_new_fragments(struct inode *inode, void *p, u64 fragment,
491491
}
492492

493493
static u64 ufs_add_fragments(struct inode *inode, u64 fragment,
494-
unsigned oldcount, unsigned newcount, int *err)
494+
unsigned oldcount, unsigned newcount)
495495
{
496496
struct super_block * sb;
497497
struct ufs_sb_private_info * uspi;

0 commit comments

Comments
 (0)