Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
fs
nilfs2
btnode.h
Go to the documentation of this file.
1
/*
2
* btnode.h - NILFS B-tree node cache
3
*
4
* Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*
20
* Written by Seiji Kihara <
[email protected]
>
21
* Revised by Ryusuke Konishi <
[email protected]
>
22
*/
23
24
#ifndef _NILFS_BTNODE_H
25
#define _NILFS_BTNODE_H
26
27
#include <linux/types.h>
28
#include <
linux/buffer_head.h
>
29
#include <linux/fs.h>
30
#include <
linux/backing-dev.h
>
31
39
struct
nilfs_btnode_chkey_ctxt
{
40
__u64
oldkey
;
41
__u64
newkey
;
42
struct
buffer_head *
bh
;
43
struct
buffer_head *
newbh
;
44
};
45
46
void
nilfs_btnode_cache_clear
(
struct
address_space
*);
47
struct
buffer_head *
nilfs_btnode_create_block
(
struct
address_space
*btnc,
48
__u64
blocknr
);
49
int
nilfs_btnode_submit_block
(
struct
address_space
*,
__u64
,
sector_t
,
int
,
50
struct
buffer_head **,
sector_t
*);
51
void
nilfs_btnode_delete
(
struct
buffer_head *);
52
int
nilfs_btnode_prepare_change_key
(
struct
address_space
*,
53
struct
nilfs_btnode_chkey_ctxt
*);
54
void
nilfs_btnode_commit_change_key
(
struct
address_space
*,
55
struct
nilfs_btnode_chkey_ctxt
*);
56
void
nilfs_btnode_abort_change_key
(
struct
address_space
*,
57
struct
nilfs_btnode_chkey_ctxt
*);
58
59
#endif
/* _NILFS_BTNODE_H */
Generated on Thu Jan 10 2013 14:48:57 for Linux Kernel by
1.8.2