Skip to content

Commit ea73767

Browse files
fs/ntfs3: Add some comments
Signed-off-by: Konstantin Komarov <[email protected]>
1 parent 83cf2cf commit ea73767

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

fs/ntfs3/fslog.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,7 +4111,7 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
41114111

41124112
/* Allocate and Read the Transaction Table. */
41134113
if (!rst->transact_table_len)
4114-
goto check_dirty_page_table;
4114+
goto check_dirty_page_table; /* reduce tab pressure. */
41154115

41164116
t64 = le64_to_cpu(rst->transact_table_lsn);
41174117
err = read_log_rec_lcb(log, t64, lcb_ctx_prev, &lcb);
@@ -4151,7 +4151,7 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
41514151
check_dirty_page_table:
41524152
/* The next record back should be the Dirty Pages Table. */
41534153
if (!rst->dirty_pages_len)
4154-
goto check_attribute_names;
4154+
goto check_attribute_names; /* reduce tab pressure. */
41554155

41564156
t64 = le64_to_cpu(rst->dirty_pages_table_lsn);
41574157
err = read_log_rec_lcb(log, t64, lcb_ctx_prev, &lcb);
@@ -4187,7 +4187,7 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
41874187

41884188
/* Convert Ra version '0' into version '1'. */
41894189
if (rst->major_ver)
4190-
goto end_conv_1;
4190+
goto end_conv_1; /* reduce tab pressure. */
41914191

41924192
dp = NULL;
41934193
while ((dp = enum_rstbl(dptbl, dp))) {
@@ -4207,8 +4207,7 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
42074207
* remembering the oldest lsn values.
42084208
*/
42094209
if (sbi->cluster_size <= log->page_size)
4210-
goto trace_dp_table;
4211-
4210+
goto trace_dp_table; /* reduce tab pressure. */
42124211
dp = NULL;
42134212
while ((dp = enum_rstbl(dptbl, dp))) {
42144213
struct DIR_PAGE_ENTRY *next = dp;
@@ -4229,7 +4228,7 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
42294228
check_attribute_names:
42304229
/* The next record should be the Attribute Names. */
42314230
if (!rst->attr_names_len)
4232-
goto check_attr_table;
4231+
goto check_attr_table; /* reduce tab pressure. */
42334232

42344233
t64 = le64_to_cpu(rst->attr_names_lsn);
42354234
err = read_log_rec_lcb(log, t64, lcb_ctx_prev, &lcb);
@@ -4261,7 +4260,7 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
42614260
check_attr_table:
42624261
/* The next record should be the attribute Table. */
42634262
if (!rst->open_attr_len)
4264-
goto check_attribute_names2;
4263+
goto check_attribute_names2; /* reduce tab pressure. */
42654264

42664265
t64 = le64_to_cpu(rst->open_attr_table_lsn);
42674266
err = read_log_rec_lcb(log, t64, lcb_ctx_prev, &lcb);
@@ -4550,7 +4549,6 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
45504549
}
45514550
}
45524551
goto next_log_record_analyze;
4553-
;
45544552
}
45554553

45564554
case OpenNonresidentAttribute:

fs/ntfs3/inode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "ntfs_fs.h"
1919

2020
/*
21-
* ntfs_read_mft - Read record and parses MFT.
21+
* ntfs_read_mft - Read record and parse MFT.
2222
*/
2323
static struct inode *ntfs_read_mft(struct inode *inode,
2424
const struct cpu_str *name,
@@ -1557,7 +1557,7 @@ int ntfs_create_inode(struct mnt_idmap *idmap, struct inode *dir,
15571557

15581558
/*
15591559
* Below function 'ntfs_save_wsl_perm' requires 0x78 bytes.
1560-
* It is good idea to keep extened attributes resident.
1560+
* It is good idea to keep extended attributes resident.
15611561
*/
15621562
if (asize + t16 + 0x78 + 8 > sbi->record_size) {
15631563
CLST alen;

fs/ntfs3/super.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
12051205

12061206
/*
12071207
* Load $Volume. This should be done before $LogFile
1208-
* 'cause 'sbi->volume.ni' is used 'ntfs_set_state'.
1208+
* 'cause 'sbi->volume.ni' is used in 'ntfs_set_state'.
12091209
*/
12101210
ref.low = cpu_to_le32(MFT_REC_VOL);
12111211
ref.seq = cpu_to_le16(MFT_REC_VOL);
@@ -1866,8 +1866,7 @@ static int __init init_ntfs_fs(void)
18661866

18671867
ntfs_inode_cachep = kmem_cache_create(
18681868
"ntfs_inode_cache", sizeof(struct ntfs_inode), 0,
1869-
(SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT),
1870-
init_once);
1869+
(SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT), init_once);
18711870
if (!ntfs_inode_cachep) {
18721871
err = -ENOMEM;
18731872
goto out1;

0 commit comments

Comments
 (0)