summaryrefslogtreecommitdiff
path: root/fs/ceph/snap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/snap.c')
-rw-r--r--fs/ceph/snap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c
index 521507ea8260..52b4c2684f92 100644
--- a/fs/ceph/snap.c
+++ b/fs/ceph/snap.c
@@ -118,7 +118,7 @@ static struct ceph_snap_realm *ceph_create_snap_realm(
lockdep_assert_held_write(&mdsc->snap_rwsem);
- realm = kzalloc(sizeof(*realm), GFP_NOFS);
+ realm = kzalloc_obj(*realm, GFP_NOFS);
if (!realm)
return ERR_PTR(-ENOMEM);
@@ -1216,7 +1216,7 @@ struct ceph_snapid_map* ceph_get_snapid_map(struct ceph_mds_client *mdsc,
return exist;
}
- sm = kmalloc(sizeof(*sm), GFP_NOFS);
+ sm = kmalloc_obj(*sm, GFP_NOFS);
if (!sm)
return NULL;