]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
UBIFS: fix commentaries
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 20 Mar 2009 17:11:12 +0000 (19:11 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 20 Mar 2009 17:11:12 +0000 (19:11 +0200)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/budget.c
fs/ubifs/debug.c
fs/ubifs/file.c
fs/ubifs/journal.c
fs/ubifs/log.c
fs/ubifs/lpt_commit.c
fs/ubifs/replay.c
fs/ubifs/tnc.c

index 8cd425b628ee469a13d127a8590780a7c39f08aa..af1914462f02b172fb2bb9f37c14fc130e7d8b6c 100644 (file)
@@ -322,8 +322,8 @@ static int can_use_rp(struct ubifs_info *c)
  *    be large, because UBIFS does not do any index consolidation as long as
  *    there is free space. IOW, the index may take a lot of LEBs, but the LEBs
  *    will contain a lot of dirt.
- * o @c->min_idx_lebs is the the index presumably takes. IOW, the index may be
- *   consolidated to take up to @c->min_idx_lebs LEBs.
+ * o @c->min_idx_lebs is the number of LEBS the index presumably takes. IOW,
+ *    the index may be consolidated to take up to @c->min_idx_lebs LEBs.
  *
  * This function returns zero in case of success, and %-ENOSPC in case of
  * failure.
index 93f6532eff007818b8c521321b71e1182330fe1d..ce2cd834361805448b4102ebea0b67473127260d 100644 (file)
@@ -1214,7 +1214,7 @@ static int dbg_check_znode(struct ubifs_info *c, struct ubifs_zbranch *zbr)
 
                        /*
                         * Make sure the last key in our znode is less or
-                        * equivalent than the the key in zbranch which goes
+                        * equivalent than the key in the zbranch which goes
                         * after our pointing zbranch.
                         */
                        cmp = keys_cmp(c, max,
index 4e7f0aca9ebcc7917050c0c256c79b87cf60c6fe..4e256b8f56b268e68c1d4da899eed29ab989120d 100644 (file)
@@ -959,7 +959,7 @@ static int do_writepage(struct page *page, int len)
  * whole index and correct all inode sizes, which is long an unacceptable.
  *
  * To prevent situations like this, UBIFS writes pages back only if they are
- * within last synchronized inode size, i.e. the the size which has been
+ * within the last synchronized inode size, i.e. the size which has been
  * written to the flash media last time. Otherwise, UBIFS forces inode
  * write-back, thus making sure the on-flash inode contains current inode size,
  * and then keeps writing pages back.
index a2d334eccbca3bcf8758d5f6cfd9ad05aa7c1c26..64b5f3a309f54cb9f6caa5a5b8aa79dfa21383e5 100644 (file)
@@ -1365,7 +1365,7 @@ out_ro:
  * @host: host inode
  *
  * This function writes the updated version of an extended attribute inode and
- * the host inode tho the journal (to the base head). The host inode is written
+ * the host inode to the journal (to the base head). The host inode is written
  * after the extended attribute inode in order to guarantee that the extended
  * attribute will be flushed when the inode is synchronized by 'fsync()' and
  * consequently, the write-buffer is synchronized. This function returns zero
index 1004261dc8646cb5838c489190839192a9e2a8e5..56e33772a1ee1a12c3e3abb08e3b2aaa14fe42ee 100644 (file)
@@ -239,7 +239,7 @@ int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs)
        }
 
        /*
-        * Make sure the the amount of space in buds will not exceed
+        * Make sure the amount of space in buds will not exceed the
         * 'c->max_bud_bytes' limit, because we want to guarantee mount time
         * limits.
         *
index 9d77f68b2f8eb9f0973e1974f17b551917488b66..8cbfb82480252d3f3abebf0d3a14beb3cc2a9b4a 100644 (file)
@@ -1,4 +1,4 @@
- /*
+/*
  * This file is part of UBIFS.
  *
  * Copyright (C) 2006-2008 Nokia Corporation.
index ce42a7b0ca5a3113b92495ed67a2970a36292a49..11cc80125a49524cef118b97173ed7ff5fb94fd9 100644 (file)
@@ -143,7 +143,7 @@ static int set_bud_lprops(struct ubifs_info *c, struct replay_entry *r)
                dirty -= c->leb_size - lp->free;
                /*
                 * If the replay order was perfect the dirty space would now be
-                * zero. The order is not perfect because the the journal heads
+                * zero. The order is not perfect because the journal heads
                 * race with each other. This is not a problem but is does mean
                 * that the dirty space may temporarily exceed c->leb_size
                 * during the replay.
index fa28a84c6a1b4a9d0f3cf5dfdb9f8fadd36e10da..f249f7b0d656930ff3c364f0579cf43f0fb0b926 100644 (file)
@@ -1252,7 +1252,7 @@ int ubifs_lookup_level0(struct ubifs_info *c, const union ubifs_key *key,
         * splitting in the middle of the colliding sequence. Also, when
         * removing the leftmost key, we would have to correct the key of the
         * parent node, which would introduce additional complications. Namely,
-        * if we changed the the leftmost key of the parent znode, the garbage
+        * if we changed the leftmost key of the parent znode, the garbage
         * collector would be unable to find it (GC is doing this when GC'ing
         * indexing LEBs). Although we already have an additional RB-tree where
         * we save such changed znodes (see 'ins_clr_old_idx_znode()') until