]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
xfs: pass a 64-bit count argument to xfs_iomap_write_unwritten
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Jan 2015 23:48:12 +0000 (10:48 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 8 Jan 2015 23:48:12 +0000 (10:48 +1100)
The code is already ready for it, and the pnfs layout commit code expects
to be able to pass a larger than 32-bit argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h

index c980e2a5086be61ca20d04607a9f1eb9ac703510..ccb1dd0d509ef8f9d50f1fb0d51e6c4fe6712237 100644 (file)
@@ -802,7 +802,7 @@ int
 xfs_iomap_write_unwritten(
        xfs_inode_t     *ip,
        xfs_off_t       offset,
-       size_t          count)
+       xfs_off_t       count)
 {
        xfs_mount_t     *mp = ip->i_mount;
        xfs_fileoff_t   offset_fsb;
index 411fbb8919ef02456e82bb39c7b97443bf1e4da0..8688e663d744077fcdb6615f00fc384fa0ea6f3e 100644 (file)
@@ -27,6 +27,6 @@ int xfs_iomap_write_delay(struct xfs_inode *, xfs_off_t, size_t,
                        struct xfs_bmbt_irec *);
 int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t,
                        struct xfs_bmbt_irec *);
-int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, size_t);
+int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t);
 
 #endif /* __XFS_IOMAP_H__*/