Skip to content

Commit

Permalink
DLPX-74216 nfs-server restarts fail when order-5 allocations are exha…
Browse files Browse the repository at this point in the history
…usted (#3)
  • Loading branch information
Don Brady authored and jwk404 committed Apr 14, 2024
1 parent da7dbef commit b9f691a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfsd/filecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ nfsd_file_cache_init(void)
if (!nfsd_filecache_wq)
goto out;

nfsd_file_hashtbl = kvcalloc(NFSD_FILE_HASH_SIZE,
sizeof(*nfsd_file_hashtbl), GFP_KERNEL);
nfsd_file_hashtbl = kvzalloc(array_size(NFSD_FILE_HASH_SIZE,
sizeof(*nfsd_file_hashtbl)), GFP_KERNEL);
if (!nfsd_file_hashtbl) {
pr_err("nfsd: unable to allocate nfsd_file_hashtbl\n");
goto out_err;
Expand Down

0 comments on commit b9f691a

Please sign in to comment.