diff options
author | Mark Fasheh <mfasheh@suse.com> | 2010-04-05 21:17:16 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-05-05 21:18:07 -0400 |
commit | 83f92318fa33cc084e14e64dc903e605f75884c1 (patch) | |
tree | c7466c64019fb050c69cab27b4388e3a86d58b1a /fs/ocfs2/reservations.h | |
parent | b07f8f24dfe54da0f074b78949044842e8df881f (diff) |
ocfs2: Add dir_resv_level mount option
The default behavior for directory reservations stays the same, but we add a
mount option so people can tweak the size of directory reservations
according to their workloads.
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/reservations.h')
-rw-r--r-- | fs/ocfs2/reservations.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/reservations.h b/fs/ocfs2/reservations.h index 022aff601e15..25b0c0e31e91 100644 --- a/fs/ocfs2/reservations.h +++ b/fs/ocfs2/reservations.h | |||
@@ -67,6 +67,8 @@ void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv); | |||
67 | void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, | 67 | void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, |
68 | unsigned int flags); | 68 | unsigned int flags); |
69 | 69 | ||
70 | int ocfs2_dir_resv_allowed(struct ocfs2_super *osb); | ||
71 | |||
70 | /** | 72 | /** |
71 | * ocfs2_resv_discard() - truncate a reservation | 73 | * ocfs2_resv_discard() - truncate a reservation |
72 | * @resmap: | 74 | * @resmap: |