summaryrefslogtreecommitdiff
path: root/fs/ntfs3/bitmap.c
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2023-06-30 16:12:58 +0400
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2023-09-28 15:03:56 +0300
commitfc471e39e38fea6677017cbdd6d928088a59fc67 (patch)
tree7f8b18e0e53ffed5750aad4e051b15382aeaab7e /fs/ntfs3/bitmap.c
parent06ccfb00645990a9fcc14249e6d1c25921ecb836 (diff)
downloadlwn-fc471e39e38fea6677017cbdd6d928088a59fc67.tar.gz
lwn-fc471e39e38fea6677017cbdd6d928088a59fc67.zip
fs/ntfs3: Use kvmalloc instead of kmalloc(... __GFP_NOWARN)
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/bitmap.c')
-rw-r--r--fs/ntfs3/bitmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ntfs3/bitmap.c b/fs/ntfs3/bitmap.c
index 107e808e06ea..d66055e30aff 100644
--- a/fs/ntfs3/bitmap.c
+++ b/fs/ntfs3/bitmap.c
@@ -659,7 +659,8 @@ int wnd_init(struct wnd_bitmap *wnd, struct super_block *sb, size_t nbits)
wnd->bits_last = wbits;
wnd->free_bits =
- kcalloc(wnd->nwnd, sizeof(u16), GFP_NOFS | __GFP_NOWARN);
+ kvmalloc_array(wnd->nwnd, sizeof(u16), GFP_KERNEL | __GFP_ZERO);
+
if (!wnd->free_bits)
return -ENOMEM;