Skip to content

Commit 83cf2cf

Browse files
fs/ntfs3: Rename variables
New names make it easier to read code. Signed-off-by: Konstantin Komarov <[email protected]>
1 parent 702d493 commit 83cf2cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fs/ntfs3/fslog.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4247,9 +4247,9 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
42474247
}
42484248

42494249
t32 = lrh_length(lrh);
4250-
rec_len -= t32;
4250+
attr_names_bytes = rec_len - t32;
42514251

4252-
attr_names = kmemdup(Add2Ptr(lrh, t32), rec_len, GFP_NOFS);
4252+
attr_names = kmemdup(Add2Ptr(lrh, t32), attr_names_bytes, GFP_NOFS);
42534253
if (!attr_names) {
42544254
err = -ENOMEM;
42554255
goto out;
@@ -4281,14 +4281,14 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
42814281
t16 = le16_to_cpu(lrh->redo_off);
42824282

42834283
rt = Add2Ptr(lrh, t16);
4284-
t32 = rec_len - t16;
4284+
oatbl_bytes = rec_len - t16;
42854285

4286-
if (!check_rstbl(rt, t32)) {
4286+
if (!check_rstbl(rt, oatbl_bytes)) {
42874287
err = -EINVAL;
42884288
goto out;
42894289
}
42904290

4291-
oatbl = kmemdup(rt, t32, GFP_NOFS);
4291+
oatbl = kmemdup(rt, oatbl_bytes, GFP_NOFS);
42924292
if (!oatbl) {
42934293
err = -ENOMEM;
42944294
goto out;

0 commit comments

Comments
 (0)