Skip to content

Commit 7d4e9cc

Browse files
Artem BityutskiyArtem Bityutskiy
authored andcommitted
UBIFS: fix commentaries
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
1 parent fb1cd01 commit 7d4e9cc

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎fs/ubifs/budget.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ static int can_use_rp(struct ubifs_info *c)
322322
* be large, because UBIFS does not do any index consolidation as long as
323323
* there is free space. IOW, the index may take a lot of LEBs, but the LEBs
324324
* will contain a lot of dirt.
325-
* o @c->min_idx_lebs is the the index presumably takes. IOW, the index may be
326-
* consolidated to take up to @c->min_idx_lebs LEBs.
325+
* o @c->min_idx_lebs is the number of LEBS the index presumably takes. IOW,
326+
* the index may be consolidated to take up to @c->min_idx_lebs LEBs.
327327
*
328328
* This function returns zero in case of success, and %-ENOSPC in case of
329329
* failure.

‎fs/ubifs/debug.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ static int dbg_check_znode(struct ubifs_info *c, struct ubifs_zbranch *zbr)
12141214

12151215
/*
12161216
* Make sure the last key in our znode is less or
1217-
* equivalent than the the key in zbranch which goes
1217+
* equivalent than the key in the zbranch which goes
12181218
* after our pointing zbranch.
12191219
*/
12201220
cmp = keys_cmp(c, max,

‎fs/ubifs/file.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ static int do_writepage(struct page *page, int len)
959959
* whole index and correct all inode sizes, which is long an unacceptable.
960960
*
961961
* To prevent situations like this, UBIFS writes pages back only if they are
962-
* within last synchronized inode size, i.e. the the size which has been
962+
* within the last synchronized inode size, i.e. the size which has been
963963
* written to the flash media last time. Otherwise, UBIFS forces inode
964964
* write-back, thus making sure the on-flash inode contains current inode size,
965965
* and then keeps writing pages back.

‎fs/ubifs/journal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host,
13651365
* @host: host inode
13661366
*
13671367
* This function writes the updated version of an extended attribute inode and
1368-
* the host inode tho the journal (to the base head). The host inode is written
1368+
* the host inode to the journal (to the base head). The host inode is written
13691369
* after the extended attribute inode in order to guarantee that the extended
13701370
* attribute will be flushed when the inode is synchronized by 'fsync()' and
13711371
* consequently, the write-buffer is synchronized. This function returns zero

‎fs/ubifs/log.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs)
239239
}
240240

241241
/*
242-
* Make sure the the amount of space in buds will not exceed
242+
* Make sure the amount of space in buds will not exceed the
243243
* 'c->max_bud_bytes' limit, because we want to guarantee mount time
244244
* limits.
245245
*

‎fs/ubifs/lpt_commit.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* This file is part of UBIFS.
33
*
44
* Copyright (C) 2006-2008 Nokia Corporation.

‎fs/ubifs/replay.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static int set_bud_lprops(struct ubifs_info *c, struct replay_entry *r)
143143
dirty -= c->leb_size - lp->free;
144144
/*
145145
* If the replay order was perfect the dirty space would now be
146-
* zero. The order is not perfect because the the journal heads
146+
* zero. The order is not perfect because the journal heads
147147
* race with each other. This is not a problem but is does mean
148148
* that the dirty space may temporarily exceed c->leb_size
149149
* during the replay.

‎fs/ubifs/tnc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ int ubifs_lookup_level0(struct ubifs_info *c, const union ubifs_key *key,
12521252
* splitting in the middle of the colliding sequence. Also, when
12531253
* removing the leftmost key, we would have to correct the key of the
12541254
* parent node, which would introduce additional complications. Namely,
1255-
* if we changed the the leftmost key of the parent znode, the garbage
1255+
* if we changed the leftmost key of the parent znode, the garbage
12561256
* collector would be unable to find it (GC is doing this when GC'ing
12571257
* indexing LEBs). Although we already have an additional RB-tree where
12581258
* we save such changed znodes (see 'ins_clr_old_idx_znode()') until

0 commit comments

Comments
 (0)