lkml.org 
[lkml]   [2008]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] xfs: remove unused parameter of xfs_iomap_write_allocate
Date
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@googlemail.com>
--
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);
\
 
 \ /
  Last update: 2008-04-22 12:19    [W:0.315 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site