aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_aops.c
diff options
context:
space:
mode:
authorJie Liu <jeff.liu@oracle.com>2013-09-29 06:56:04 -0400
committerBen Myers <bpm@sgi.com>2013-10-01 16:42:34 -0400
commit0799a3e808e5543235bcdfe9d1fa1572e0e86ab5 (patch)
treebb249b619d1df30f8f23735ab710ae8e2050d7fe /fs/xfs/xfs_aops.c
parentaaaae98022efa4f3c31042f1fdf9e7a0c5f04663 (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/xfs/xfs_aops.c')
-rw-r--r--fs/xfs/xfs_aops.c2
1 files changed, 1 insertions, 1 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);