node.h (a125702326d9c3b753fe9c9b9727d3b3dd1cba4a) node.h (ea1a29a0bdfffd56ca98335c0655308e8d7d0e22)
1/*
2 * fs/f2fs/node.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11/* start node id of a node block dedicated to the given node id */
12#define START_NID(nid) ((nid / NAT_ENTRY_PER_BLOCK) * NAT_ENTRY_PER_BLOCK)
13
14/* node block offset on the NAT area dedicated to the given start node id */
15#define NAT_BLOCK_OFFSET(start_nid) (start_nid / NAT_ENTRY_PER_BLOCK)
16
1/*
2 * fs/f2fs/node.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11/* start node id of a node block dedicated to the given node id */
12#define START_NID(nid) ((nid / NAT_ENTRY_PER_BLOCK) * NAT_ENTRY_PER_BLOCK)
13
14/* node block offset on the NAT area dedicated to the given start node id */
15#define NAT_BLOCK_OFFSET(start_nid) (start_nid / NAT_ENTRY_PER_BLOCK)
16
17/* # of pages to perform readahead before building free nids */
17/* # of pages to perform synchronous readahead before building free nids */
18#define FREE_NID_PAGES 4
19
18#define FREE_NID_PAGES 4
19
20#define DEF_RA_NID_PAGES 4 /* # of nid pages to be readaheaded */
21
20/* maximum readahead size for node during getting data blocks */
21#define MAX_RA_NODE 128
22
23/* control the memory footprint threshold (10MB per 1GB ram) */
24#define DEF_RAM_THRESHOLD 10
25
26/* vector size for gang look-up from nat cache that consists of radix tree */
27#define NATVEC_SIZE 64

--- 367 unchanged lines hidden ---
22/* maximum readahead size for node during getting data blocks */
23#define MAX_RA_NODE 128
24
25/* control the memory footprint threshold (10MB per 1GB ram) */
26#define DEF_RAM_THRESHOLD 10
27
28/* vector size for gang look-up from nat cache that consists of radix tree */
29#define NATVEC_SIZE 64

--- 367 unchanged lines hidden ---