avoid null pointers
[unix-history] / usr / src / sys / ufs / ffs / ffs_balloc.c
index a703b1d..a6393db 100644 (file)
@@ -4,24 +4,25 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)ffs_balloc.c        7.11 (Berkeley) %G%
+ *     @(#)ffs_balloc.c        7.13 (Berkeley) %G%
  */
 
 #include "param.h"
 #include "systm.h"
  */
 
 #include "param.h"
 #include "systm.h"
-#include "user.h"
 #include "buf.h"
 #include "proc.h"
 #include "file.h"
 #include "vnode.h"
 #include "buf.h"
 #include "proc.h"
 #include "file.h"
 #include "vnode.h"
-#include "../ufs/quota.h"
-#include "../ufs/inode.h"
-#include "../ufs/fs.h"
+
+#include "quota.h"
+#include "inode.h"
+#include "fs.h"
 
 /*
 
 /*
- * Bmap defines the structure of file system storage
- * by returning the physical block number on a device
- * given the inode and the logical block number in a file.
+ * Bmap converts a the logical block number of a file
+ * to its physical block number on the disk. The conversion
+ * is done by using the logical block number to index into
+ * the array of block pointers described by the dinode.
  */
 bmap(ip, bn, bnp)
        register struct inode *ip;
  */
 bmap(ip, bn, bnp)
        register struct inode *ip;