balloc.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) balloc.c (0562e0bad483d10e9651fbb8f21dc3d0bad57374)
1/*
2 * linux/fs/ext4/balloc.c
3 *
4 * Copyright (C) 1992, 1993, 1994, 1995
5 * Remy Card (card@masi.ibp.fr)
6 * Laboratoire MASI - Institut Blaise Pascal
7 * Universite Pierre et Marie Curie (Paris VI)
8 *

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

16#include <linux/fs.h>
17#include <linux/jbd2.h>
18#include <linux/quotaops.h>
19#include <linux/buffer_head.h>
20#include "ext4.h"
21#include "ext4_jbd2.h"
22#include "mballoc.h"
23
1/*
2 * linux/fs/ext4/balloc.c
3 *
4 * Copyright (C) 1992, 1993, 1994, 1995
5 * Remy Card (card@masi.ibp.fr)
6 * Laboratoire MASI - Institut Blaise Pascal
7 * Universite Pierre et Marie Curie (Paris VI)
8 *

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

16#include <linux/fs.h>
17#include <linux/jbd2.h>
18#include <linux/quotaops.h>
19#include <linux/buffer_head.h>
20#include "ext4.h"
21#include "ext4_jbd2.h"
22#include "mballoc.h"
23
24#include <trace/events/ext4.h>
25
24/*
25 * balloc.c contains the blocks allocation and deallocation routines
26 */
27
28/*
29 * Calculate the block group number and offset, given a block number
30 */
31void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr,

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

337 return bh;
338 }
339 /*
340 * submit the buffer_head for read. We can
341 * safely mark the bitmap as uptodate now.
342 * We do it here so the bitmap uptodate bit
343 * get set with buffer lock held.
344 */
26/*
27 * balloc.c contains the blocks allocation and deallocation routines
28 */
29
30/*
31 * Calculate the block group number and offset, given a block number
32 */
33void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr,

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

339 return bh;
340 }
341 /*
342 * submit the buffer_head for read. We can
343 * safely mark the bitmap as uptodate now.
344 * We do it here so the bitmap uptodate bit
345 * get set with buffer lock held.
346 */
347 trace_ext4_read_block_bitmap_load(sb, block_group);
345 set_bitmap_uptodate(bh);
346 if (bh_submit_read(bh) < 0) {
347 put_bh(bh);
348 ext4_error(sb, "Cannot read block bitmap - "
349 "block_group = %u, block_bitmap = %llu",
350 block_group, bitmap_blk);
351 return NULL;
352 }

--- 391 unchanged lines hidden ---
348 set_bitmap_uptodate(bh);
349 if (bh_submit_read(bh) < 0) {
350 put_bh(bh);
351 ext4_error(sb, "Cannot read block bitmap - "
352 "block_group = %u, block_bitmap = %llu",
353 block_group, bitmap_blk);
354 return NULL;
355 }

--- 391 unchanged lines hidden ---