aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2_fs.h
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2008-11-20 20:54:57 -0500
committerMark Fasheh <mfasheh@suse.com>2009-04-03 14:39:16 -0400
commit198a1ca3b735986542c538e38b9499ffcaed7005 (patch)
tree3b02034534c4640e72623088a59d1e942c38e7c3 /fs/ocfs2/ocfs2_fs.h
parente7c17e43090afe558c40bfb66637744c27bd2aeb (diff)
ocfs2: Increase max links count
Since we've now got a directory format capable of handling a large number of entries, we can increase the maximum link count supported. This only gets increased if the directory indexing feature is turned on. Signed-off-by: Mark Fasheh <mfasheh@suse.com> Acked-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_fs.h')
-rw-r--r--fs/ocfs2/ocfs2_fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h
index d549b1799a61..43da76eff9ae 100644
--- a/fs/ocfs2/ocfs2_fs.h
+++ b/fs/ocfs2/ocfs2_fs.h
@@ -419,6 +419,8 @@ static struct ocfs2_system_inode_info ocfs2_system_inodes[NUM_SYSTEM_INODES] = {
419#define OCFS2_DIR_MIN_REC_LEN OCFS2_DIR_REC_LEN(1) 419#define OCFS2_DIR_MIN_REC_LEN OCFS2_DIR_REC_LEN(1)
420 420
421#define OCFS2_LINK_MAX 32000 421#define OCFS2_LINK_MAX 32000
422#define OCFS2_DX_LINK_MAX ((1U << 31) - 1U)
423#define OCFS2_LINKS_HI_SHIFT 16
422 424
423#define S_SHIFT 12 425#define S_SHIFT 12
424static unsigned char ocfs2_type_by_mode[S_IFMT >> S_SHIFT] = { 426static unsigned char ocfs2_type_by_mode[S_IFMT >> S_SHIFT] = {
@@ -686,7 +688,7 @@ struct ocfs2_dinode {
686 belongs to */ 688 belongs to */
687 __le16 i_suballoc_bit; /* Bit offset in suballocator 689 __le16 i_suballoc_bit; /* Bit offset in suballocator
688 block group */ 690 block group */
689/*10*/ __le16 i_reserved0; 691/*10*/ __le16 i_links_count_hi; /* High 16 bits of links count */
690 __le16 i_xattr_inline_size; 692 __le16 i_xattr_inline_size;
691 __le32 i_clusters; /* Cluster count */ 693 __le32 i_clusters; /* Cluster count */
692 __le32 i_uid; /* Owner UID */ 694 __le32 i_uid; /* Owner UID */