]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/internal.h
Pull osi into release branch
[linux-2.6-omap-h63xx.git] / fs / nfs / internal.h
index ad2b40db1e65f901d7081c27ed0b9650816a8f6d..76cf55d57101ab5b2cf3acfac638684e27bb6543 100644 (file)
@@ -183,9 +183,9 @@ unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp)
 /*
  * Calculate the number of 512byte blocks used.
  */
-static inline unsigned long nfs_calc_block_size(u64 tsize)
+static inline blkcnt_t nfs_calc_block_size(u64 tsize)
 {
-       loff_t used = (tsize + 511) >> 9;
+       blkcnt_t used = (tsize + 511) >> 9;
        return (used > ULONG_MAX) ? ULONG_MAX : used;
 }