aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-06 17:36:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:08:10 -0400
commit45641c82c1e3aeaef72d693b24938da45ffb0cfc (patch)
tree4cc3be76df8891483635b87e41853183e03df5e0
parentdf3d4e7a240890e323e87f7f16e25d05b6c8827c (diff)
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>
-rw-r--r--fs/ufs/balloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ufs/balloc.c b/fs/ufs/balloc.c
index 0ab1de4b39a5..184323cac1a4 100644
--- a/fs/ufs/balloc.c
+++ b/fs/ufs/balloc.c
@@ -24,7 +24,7 @@
24 24
25#define INVBLOCK ((u64)-1L) 25#define INVBLOCK ((u64)-1L)
26 26
27static u64 ufs_add_fragments(struct inode *, u64, unsigned, unsigned, int *); 27static u64 ufs_add_fragments(struct inode *, u64, unsigned, unsigned);
28static u64 ufs_alloc_fragments(struct inode *, unsigned, u64, unsigned, int *); 28static u64 ufs_alloc_fragments(struct inode *, unsigned, u64, unsigned, int *);
29static u64 ufs_alloccg_block(struct inode *, struct ufs_cg_private_info *, u64, int *); 29static u64 ufs_alloccg_block(struct inode *, struct ufs_cg_private_info *, u64, int *);
30static u64 ufs_bitmap_search (struct super_block *, struct ufs_cg_private_info *, u64, unsigned); 30static 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,
432 /* 432 /*
433 * resize block 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 if (result) { 436 if (result) {
437 *err = 0; 437 *err = 0;
438 UFS_I(inode)->i_lastfrag = max(UFS_I(inode)->i_lastfrag, 438 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,
491} 491}
492 492
493static u64 ufs_add_fragments(struct inode *inode, u64 fragment, 493static u64 ufs_add_fragments(struct inode *inode, u64 fragment,
494 unsigned oldcount, unsigned newcount, int *err) 494 unsigned oldcount, unsigned newcount)
495{ 495{
496 struct super_block * sb; 496 struct super_block * sb;
497 struct ufs_sb_private_info * uspi; 497 struct ufs_sb_private_info * uspi;