diff options
| author | Jie Liu <jeff.liu@oracle.com> | 2013-09-29 06:56:04 -0400 |
|---|---|---|
| committer | Ben Myers <bpm@sgi.com> | 2013-10-01 16:42:34 -0400 |
| commit | 0799a3e808e5543235bcdfe9d1fa1572e0e86ab5 (patch) | |
| tree | bb249b619d1df30f8f23735ab710ae8e2050d7fe /fs | |
| parent | aaaae98022efa4f3c31042f1fdf9e7a0c5f04663 (diff) | |
xfs: get rid of count from xfs_iomap_write_allocate()
Get rid of function variable count from xfs_iomap_write_allocate() as
it is unused.
Additionally, checkpatch warn me of the following for this change:
WARNING: extern prototypes should be avoided in .h files
+extern int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t,
So this patch also remove all extern function prototypes at xfs_iomap.h
to suppress it to make this code style in consistent manner in this file.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/xfs/xfs_aops.c | 2 | ||||
| -rw-r--r-- | fs/xfs/xfs_iomap.c | 1 | ||||
| -rw-r--r-- | fs/xfs/xfs_iomap.h | 8 |
3 files changed, 5 insertions, 6 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index e51e581454e9..f3f95f094af8 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c | |||
| @@ -333,7 +333,7 @@ xfs_map_blocks( | |||
| 333 | 333 | ||
| 334 | if (type == XFS_IO_DELALLOC && | 334 | if (type == XFS_IO_DELALLOC && |
| 335 | (!nimaps || isnullstartblock(imap->br_startblock))) { | 335 | (!nimaps || isnullstartblock(imap->br_startblock))) { |
| 336 | error = xfs_iomap_write_allocate(ip, offset, count, imap); | 336 | error = xfs_iomap_write_allocate(ip, offset, imap); |
| 337 | if (!error) | 337 | if (!error) |
| 338 | trace_xfs_map_blocks_alloc(ip, offset, count, type, imap); | 338 | trace_xfs_map_blocks_alloc(ip, offset, count, type, imap); |
| 339 | return -XFS_ERROR(error); | 339 | return -XFS_ERROR(error); |
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 8d4d49b6fbf3..521fdf2ac6da 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
| @@ -655,7 +655,6 @@ int | |||
| 655 | xfs_iomap_write_allocate( | 655 | xfs_iomap_write_allocate( |
| 656 | xfs_inode_t *ip, | 656 | xfs_inode_t *ip, |
| 657 | xfs_off_t offset, | 657 | xfs_off_t offset, |
| 658 | size_t count, | ||
| 659 | xfs_bmbt_irec_t *imap) | 658 | xfs_bmbt_irec_t *imap) |
| 660 | { | 659 | { |
| 661 | xfs_mount_t *mp = ip->i_mount; | 660 | xfs_mount_t *mp = ip->i_mount; |
diff --git a/fs/xfs/xfs_iomap.h b/fs/xfs/xfs_iomap.h index 80615760959a..411fbb8919ef 100644 --- a/fs/xfs/xfs_iomap.h +++ b/fs/xfs/xfs_iomap.h | |||
| @@ -21,12 +21,12 @@ | |||
| 21 | struct xfs_inode; | 21 | struct xfs_inode; |
| 22 | struct xfs_bmbt_irec; | 22 | struct xfs_bmbt_irec; |
| 23 | 23 | ||
| 24 | extern int xfs_iomap_write_direct(struct xfs_inode *, xfs_off_t, size_t, | 24 | int xfs_iomap_write_direct(struct xfs_inode *, xfs_off_t, size_t, |
| 25 | struct xfs_bmbt_irec *, int); | 25 | struct xfs_bmbt_irec *, int); |
| 26 | extern int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t, | 26 | int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t, |
| 27 | struct xfs_bmbt_irec *); | 27 | struct xfs_bmbt_irec *); |
| 28 | extern int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t, size_t, | 28 | int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t, |
| 29 | struct xfs_bmbt_irec *); | 29 | struct xfs_bmbt_irec *); |
| 30 | extern int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, size_t); | 30 | int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, size_t); |
| 31 | 31 | ||
| 32 | #endif /* __XFS_IOMAP_H__*/ | 32 | #endif /* __XFS_IOMAP_H__*/ |
