diff options
author | Mark Fasheh <mfasheh@suse.com> | 2010-04-05 18:17:16 -0700 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-04-05 18:33:40 -0700 |
commit | ade618535c2b54201ff3776a6daa47e72ab500ca (patch) | |
tree | 1c9897072920b47cad7c56e11cfc18d7050c3972 /fs/ocfs2/reservations.h | |
parent | 6c5b4fe1dc77a7360617916464416fa24e556247 (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); void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, unsigned int flags); +int ocfs2_dir_resv_allowed(struct ocfs2_super *osb); + /** * ocfs2_resv_discard() - truncate a reservation * @resmap: |