xfs: remove unused full argument from bmap
authorEric Sandeen <sandeen@redhat.com>
Sat, 28 Jan 2017 07:24:28 +0000 (23:24 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jan 2017 00:32:25 +0000 (16:32 -0800)
The "full" argument was used only by the fiemap formatter,
which is now gone with the iomap updates.

Remove the unused arg.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_bmap_util.h
fs/xfs/xfs_ioctl.c

index eb890ed1ed5c37dc02fa1aba78e761ac71bae09c..7c3bfafffba8127c5ebea51aecddfa753f1b2aad 100644 (file)
@@ -787,11 +787,9 @@ xfs_getbmap(
        xfs_iunlock(ip, XFS_IOLOCK_SHARED);
 
        for (i = 0; i < cur_ext; i++) {
-               int full = 0;   /* user array is full */
-
                /* format results & advance arg */
-               error = formatter(&arg, &out[i], &full);
-               if (error || full)
+               error = formatter(&arg, &out[i]);
+               if (error)
                        break;
        }
 
index f1005393785c07107ab2b6bf94334ff5e6bbca16..135d8267e2846b2552f6ae426cac1a8c41877f74 100644 (file)
@@ -35,7 +35,7 @@ int   xfs_bmap_punch_delalloc_range(struct xfs_inode *ip,
                xfs_fileoff_t start_fsb, xfs_fileoff_t length);
 
 /* bmap to userspace formatter - copy to user & advance pointer */
-typedef int (*xfs_bmap_format_t)(void **, struct getbmapx *, int *);
+typedef int (*xfs_bmap_format_t)(void **, struct getbmapx *);
 int    xfs_getbmap(struct xfs_inode *ip, struct getbmapx *bmv,
                xfs_bmap_format_t formatter, void *arg);
 
index c67cfb451fd3a74dad2d365e372b4e5fa296eecd..cf1363dbf32b91f4d0bf6f41bbbbd0e6b84e72ec 100644 (file)
@@ -1524,7 +1524,7 @@ out_drop_write:
 }
 
 STATIC int
-xfs_getbmap_format(void **ap, struct getbmapx *bmv, int *full)
+xfs_getbmap_format(void **ap, struct getbmapx *bmv)
 {
        struct getbmap __user   *base = (struct getbmap __user *)*ap;
 
@@ -1567,7 +1567,7 @@ xfs_ioc_getbmap(
 }
 
 STATIC int
-xfs_getbmapx_format(void **ap, struct getbmapx *bmv, int *full)
+xfs_getbmapx_format(void **ap, struct getbmapx *bmv)
 {
        struct getbmapx __user  *base = (struct getbmapx __user *)*ap;