fs/ntfs3: Rename variables
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 3 Jun 2024 11:39:15 +0000 (14:39 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 26 Jun 2024 12:48:52 +0000 (15:48 +0300)
New names make it easier to read code.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/fslog.c

index e47c2105a24e94411f1984dd2293ea775d421160..3d8d6f9b7883bb940b6f6f01b95cb10ea9b70135 100644 (file)
@@ -4247,9 +4247,9 @@ check_attribute_names:
        }
 
        t32 = lrh_length(lrh);
-       rec_len -= t32;
+       attr_names_bytes = rec_len - t32;
 
-       attr_names = kmemdup(Add2Ptr(lrh, t32), rec_len, GFP_NOFS);
+       attr_names = kmemdup(Add2Ptr(lrh, t32), attr_names_bytes, GFP_NOFS);
        if (!attr_names) {
                err = -ENOMEM;
                goto out;
@@ -4281,14 +4281,14 @@ check_attr_table:
        t16 = le16_to_cpu(lrh->redo_off);
 
        rt = Add2Ptr(lrh, t16);
-       t32 = rec_len - t16;
+       oatbl_bytes = rec_len - t16;
 
-       if (!check_rstbl(rt, t32)) {
+       if (!check_rstbl(rt, oatbl_bytes)) {
                err = -EINVAL;
                goto out;
        }
 
-       oatbl = kmemdup(rt, t32, GFP_NOFS);
+       oatbl = kmemdup(rt, oatbl_bytes, GFP_NOFS);
        if (!oatbl) {
                err = -ENOMEM;
                goto out;