diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 14c43cd24..56271c14b 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -198,7 +198,7 @@ nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) static inline unsigned long nfs_calc_block_size(u64 tsize) { - loff_t used = (tsize + 511) / 512; + loff_t used = (tsize + 511) >> 9; return (used > ULONG_MAX) ? ULONG_MAX : used; } |