patch-2.3.99-pre5 linux/fs/nfs/inode.c

Next file: linux/include/linux/pci.h
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre4/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -198,7 +198,7 @@
 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;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)