quota.c (7318234c8d7c0f209f993ee46a7ea148efdb28b9) quota.c (88dca4ca5a93d2c09e5bbc6a62fbfc3af83c4fca)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
5 */
6
7/*
8 * Quota change tags are associated with each transaction that allocates or

--- 1351 unchanged lines hidden (view full) ---

1360
1361 sdp->sd_quota_slots = blocks * sdp->sd_qc_per_block;
1362 bm_size = DIV_ROUND_UP(sdp->sd_quota_slots, 8 * sizeof(unsigned long));
1363 bm_size *= sizeof(unsigned long);
1364 error = -ENOMEM;
1365 sdp->sd_quota_bitmap = kzalloc(bm_size, GFP_NOFS | __GFP_NOWARN);
1366 if (sdp->sd_quota_bitmap == NULL)
1367 sdp->sd_quota_bitmap = __vmalloc(bm_size, GFP_NOFS |
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
5 */
6
7/*
8 * Quota change tags are associated with each transaction that allocates or

--- 1351 unchanged lines hidden (view full) ---

1360
1361 sdp->sd_quota_slots = blocks * sdp->sd_qc_per_block;
1362 bm_size = DIV_ROUND_UP(sdp->sd_quota_slots, 8 * sizeof(unsigned long));
1363 bm_size *= sizeof(unsigned long);
1364 error = -ENOMEM;
1365 sdp->sd_quota_bitmap = kzalloc(bm_size, GFP_NOFS | __GFP_NOWARN);
1366 if (sdp->sd_quota_bitmap == NULL)
1367 sdp->sd_quota_bitmap = __vmalloc(bm_size, GFP_NOFS |
1368 __GFP_ZERO, PAGE_KERNEL);
1368 __GFP_ZERO);
1369 if (!sdp->sd_quota_bitmap)
1370 return error;
1371
1372 for (x = 0; x < blocks; x++) {
1373 struct buffer_head *bh;
1374 const struct gfs2_quota_change *qc;
1375 unsigned int y;
1376

--- 402 unchanged lines hidden ---
1369 if (!sdp->sd_quota_bitmap)
1370 return error;
1371
1372 for (x = 0; x < blocks; x++) {
1373 struct buffer_head *bh;
1374 const struct gfs2_quota_change *qc;
1375 unsigned int y;
1376

--- 402 unchanged lines hidden ---