]> git.neil.brown.name Git - LaFS.git/commitdiff
Remove some outdated comments.
authorNeilBrown <neilb@suse.de>
Wed, 26 Aug 2009 06:46:31 +0000 (16:46 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 26 Aug 2009 06:46:31 +0000 (16:46 +1000)
and some code that is pointless (dmap_dblock is identical to
map_dblock).

dir.c

diff --git a/dir.c b/dir.c
index 25fb416359cf1024e6f528527927c950d6b1d675..e2fa0a28a61ef84a5953a19999d22d2dba19c0eb 100644 (file)
--- a/dir.c
+++ b/dir.c
 
 #include       "lafs.h"
 
-static inline void *dmap_dblock(struct datablock *b)
-{
-       void *a = kmap_atomic(b->page, KM_USER0);
-       a += dblock_offset(b);
-       //BUG_ON(((unsigned char *)a)[16] == 0xff);
-       return a;
-}
-
-static inline void dunmap_dblock(struct datablock *b, void *buf)
-{
-       //BUG_ON(((unsigned char *)buf)[16] == 0xff);
-       kunmap_atomic(buf - dblock_offset(b), KM_USER0);
-}
-
-#define map_dblock dmap_dblock
-#define unmap_dblock dunmap_dblock
-/* Every block in a directory gets an extra structure
- * to help track the tree structure of the directory
- * It particularly hold a pointer to the parent,
- * but also tracks orphans and btree nodes that
- * have been split but not incorporated.
- */
-
 #define S_SHIFT 12
 
 static unsigned char file_type[1 + (S_IFMT >> S_SHIFT)] = {
@@ -53,7 +30,7 @@ static inline int mode_to_dt(int mode)
 /*****************************************************************************
  * Directory lookup
  * Most of the work is done in dir_lookup_blk which returns the block
- * that should hold the entry, and optionally the parent index block.
+ * that should hold the entry.
  * dir_lookup takes that result and finds an inode number if possible.
  */
 static struct datablock *
@@ -400,9 +377,6 @@ dir_create_abort(struct dirop_handle *doh)
 
 /*---------------------------------------------------------------
  * Delete directory entry.
- * deleting is *so* much easier than insert.  This is because
- * we never need to allocate new block, and so can be completely
- * lazy about updating the tree structure.
  * Deleting involves invalidating the entry in the dirent block,
  * and then removing entry deleted entries that are not in a chain.
  * If we cannot be sure, we schedule orphan processing to do
@@ -1281,8 +1255,6 @@ lafs_rename(struct inode *old_dir, struct dentry *old_dentry,
  *   - to schedule next block for orphan handling if that might be appropriate.
  *
  *
- * All pending merges need to be linked to the inode.
- *
  * Specifically:
  *  Lock the directory.
  *   If last possible entry (addr-1) is deleted,