-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetadata.h
32 lines (27 loc) · 849 Bytes
/
metadata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* metadata.h
*
* Copyright (C) 2014
* Maxime Lorrillere <[email protected]>
* LIP6 - Laboratoire d'Informatique de Paris 6
*/
#ifndef REMOTECACHE_METADATA_H
#define REMOTECACHE_METADATA_H
#include <linux/kref.h>
#include <linux/list.h>
#include <linux/rbtree.h>
#include <linux/uuid.h>
#include <linux/shrinker.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include "remotecache.h"
#include "cache.h"
/*
* Metadata tags, for tagging present and busy pages
*/
#define REMOTECACHE_TAG_BUSY 0
#define REMOTECACHE_TAG_PRESENT 1
void __remotecache_metadata_clear_busy(struct remotecache_inode *inode, pgoff_t index);
void __remotecache_metadata_set_busy(struct remotecache_inode *inode, pgoff_t index);
void remotecache_metadata_wait_busy(struct remotecache_inode *inode, pgoff_t index);
#endif /* REMOTECACHE_METADATA_H */