Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195730
b: refs/heads/master
c: b07f8f2
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh authored and Joel Becker committed May 6, 2010
1 parent f599e7b commit e49f1c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b82021b9e91cd689fdffadbcdb9a42597bbe764
refs/heads/master: b07f8f24dfe54da0f074b78949044842e8df881f
2 changes: 1 addition & 1 deletion trunk/Documentation/filesystems/ocfs2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ user_xattr (*) Enables Extended User Attributes.
nouser_xattr Disables Extended User Attributes.
acl Enables POSIX Access Control Lists support.
noacl (*) Disables POSIX Access Control Lists support.
resv_level=4 (*) Set how agressive allocation reservations will be.
resv_level=2 (*) Set how agressive allocation reservations will be.
Valid values are between 0 (reservations off) to 8
(maximum space for reservations).
7 changes: 4 additions & 3 deletions trunk/fs/ocfs2/reservations.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ static unsigned int ocfs2_resv_window_bits(struct ocfs2_reservation_map *resmap,
if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) {
/* 8, 16, 32, 64, 128, 256, 512, 1024 */
bits = 4 << osb->osb_resv_level;
} else
bits = OCFS2_RESV_DIR_WINDOW_BITS;

} else {
/* For now, treat directories the same as files. */
bits = 4 << osb->osb_resv_level;
}
return bits;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/reservations.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <linux/rbtree.h>

#define OCFS2_DEFAULT_RESV_LEVEL 4
#define OCFS2_DEFAULT_RESV_LEVEL 2
#define OCFS2_MAX_RESV_LEVEL 9
#define OCFS2_MIN_RESV_LEVEL 0

Expand Down

0 comments on commit e49f1c1

Please sign in to comment.