[PATCH] xfs: remove unused parameter of xfs_iomap_write_allocate

From: Denys Vlasenko
Date: Tue Apr 22 2008 - 06:17:18 EST


Hi David,

xfs_iomap_write_allocate() does not use count parameter.
This patch removes it.

Code size difference on 32-bit x86:

# size */fs/xfs/xfs.o
393457 2904 2952 399313 617d1 linux-2.6-xfs4-TEST/fs/xfs/xfs.o
393441 2904 2952 399297 617c1 linux-2.6-xfs5-TEST/fs/xfs/xfs.o

Compile tested only.

Signed-off-by: Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx>
--
vda
--- linux-2.6-xfs4/fs/xfs/xfs_iomap.c Tue Apr 22 04:06:44 2008
+++ linux-2.6-xfs5/fs/xfs/xfs_iomap.c Tue Apr 22 11:59:32 2008
@@ -267,7 +267,7 @@
break;
}

- error = xfs_iomap_write_allocate(ip, offset, count,
+ error = xfs_iomap_write_allocate(ip, offset,
&imap, &nimaps);
break;
}
@@ -710,7 +710,6 @@
xfs_iomap_write_allocate(
xfs_inode_t *ip,
xfs_off_t offset,
- size_t count,
xfs_bmbt_irec_t *map,
int *retmap)
{
--- linux-2.6-xfs4/fs/xfs/xfs_iomap.h Tue Apr 22 04:06:44 2008
+++ linux-2.6-xfs5/fs/xfs/xfs_iomap.h Tue Apr 22 11:59:16 2008
@@ -80,7 +80,7 @@
int, struct xfs_bmbt_irec *, int *, int);
extern int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t, int,
struct xfs_bmbt_irec *, int *);
-extern int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t, size_t,
+extern int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t,
struct xfs_bmbt_irec *, int *);
extern int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, size_t);