]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
xfs: fix xfs_iomap_eof_prealloc_initial_size type
authorMark Tinguely <tinguely@sgi.com>
Sun, 24 Feb 2013 19:04:37 +0000 (13:04 -0600)
committerBen Myers <bpm@sgi.com>
Thu, 7 Mar 2013 18:29:59 +0000 (12:29 -0600)
Fix the return type of xfs_iomap_eof_prealloc_initial_size() to
xfs_fsblock_t to reflect the fact that the return value may be an
unsigned 64 bits if XFS_BIG_BLKNOS is defined.

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_iomap.c

index 5cfc0992bd11580cfe9f648e775ca12d9a4d5968..c8cb337efccf6923e474185548966fd7f9c43810 100644 (file)
@@ -325,7 +325,7 @@ xfs_iomap_eof_want_preallocate(
  * rather than falling short due to things like stripe unit/width alignment of
  * real extents.
  */
-STATIC int
+STATIC xfs_fsblock_t
 xfs_iomap_eof_prealloc_initial_size(
        struct xfs_mount        *mp,
        struct xfs_inode        *ip,