Merge tag 'audit-pr-20201214' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
[linux-2.6-microblaze.git] / fs / afs / volume.c
index 9bc0509..f84194b 100644 (file)
@@ -83,7 +83,7 @@ static struct afs_volume *afs_alloc_volume(struct afs_fs_context *params,
 
        volume->vid             = vldb->vid[params->type];
        volume->update_at       = ktime_get_real_seconds() + afs_volume_record_life;
-       volume->cell            = afs_get_cell(params->cell);
+       volume->cell            = afs_get_cell(params->cell, afs_cell_trace_get_vol);
        volume->type            = params->type;
        volume->type_force      = params->force;
        volume->name_len        = vldb->name_len;
@@ -106,7 +106,7 @@ static struct afs_volume *afs_alloc_volume(struct afs_fs_context *params,
        return volume;
 
 error_1:
-       afs_put_cell(params->net, volume->cell);
+       afs_put_cell(volume->cell, afs_cell_trace_put_vol);
        kfree(volume);
 error_0:
        return ERR_PTR(ret);
@@ -228,7 +228,7 @@ static void afs_destroy_volume(struct afs_net *net, struct afs_volume *volume)
 
        afs_remove_volume_from_cell(volume);
        afs_put_serverlist(net, rcu_access_pointer(volume->servers));
-       afs_put_cell(net, volume->cell);
+       afs_put_cell(volume->cell, afs_cell_trace_put_vol);
        trace_afs_volume(volume->vid, atomic_read(&volume->usage),
                         afs_volume_trace_free);
        kfree_rcu(volume, rcu);