projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix required package list (need git-core, not git).
[bluesky.git]
/
bluesky
/
bluesky.h
diff --git
a/bluesky/bluesky.h
b/bluesky/bluesky.h
index
6ddf605
..
d7750f7
100644
(file)
--- a/
bluesky/bluesky.h
+++ b/
bluesky/bluesky.h
@@
-28,7
+28,11
@@
typedef struct {
/* Can inodes be fetched asynchronously? (Inode object is initially
* created in a pending state, and not unlocked until the data is actually
* available.) */
/* Can inodes be fetched asynchronously? (Inode object is initially
* created in a pending state, and not unlocked until the data is actually
* available.) */
- int async_inode_fetches;
+ int sync_inode_fetches;
+
+ /* Should frontends handle requests serially or allow operations to proceed
+ * in parallel? */
+ int sync_frontends;
} BlueSkyOptions;
extern BlueSkyOptions bluesky_options;
} BlueSkyOptions;
extern BlueSkyOptions bluesky_options;
@@
-134,6
+138,9
@@
bluesky_time_hires bluesky_now_hires();
* acquire locks on parents in the filesystem tree before children.
* (TODO: What about rename when we acquire locks in unrelated parts of the
* filesystem?)
* acquire locks on parents in the filesystem tree before children.
* (TODO: What about rename when we acquire locks in unrelated parts of the
* filesystem?)
+ * - An inode should not be locked while the filesystem lock is already held,
+ * since some code may do an inode lookup (which acquires the filesystem
+ * lock) while a different inode is locked.
* */
typedef struct {
GMutex *lock;
* */
typedef struct {
GMutex *lock;
@@
-162,6
+169,9
@@
typedef struct {
* set to the current time. If the inode is clean, it is set to zero. */
int64_t change_time;
* set to the current time. If the inode is clean, it is set to zero. */
int64_t change_time;
+ /* Last access time to this inode, for controlling cache evictions. */
+ int64_t access_time;
+
/* Additional state for tracking cache writeback status. */
uint64_t change_pending; /* change_count version currently being committed to storage */
/* Additional state for tracking cache writeback status. */
uint64_t change_pending; /* change_count version currently being committed to storage */
@@
-252,6
+262,7
@@
gint bluesky_dirent_compare(gconstpointer a, gconstpointer b,
gpointer unused);
void bluesky_flushd_invoke(BlueSkyFS *fs);
gpointer unused);
void bluesky_flushd_invoke(BlueSkyFS *fs);
+void bluesky_inode_do_sync(BlueSkyInode *inode);
void bluesky_debug_dump(BlueSkyFS *fs);
void bluesky_debug_dump(BlueSkyFS *fs);