diff options
author | Mark Fasheh <mfasheh@suse.com> | 2008-11-20 20:54:57 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-04-03 14:39:16 -0400 |
commit | 198a1ca3b735986542c538e38b9499ffcaed7005 (patch) | |
tree | 3b02034534c4640e72623088a59d1e942c38e7c3 /fs/ocfs2/inode.c | |
parent | e7c17e43090afe558c40bfb66637744c27bd2aeb (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/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index d273c4a51a00..f1f77b2f5947 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -276,7 +276,7 @@ void ocfs2_populate_inode(struct inode *inode, struct ocfs2_dinode *fe, | |||
276 | (unsigned long long)OCFS2_I(inode)->ip_blkno, | 276 | (unsigned long long)OCFS2_I(inode)->ip_blkno, |
277 | (unsigned long long)le64_to_cpu(fe->i_blkno)); | 277 | (unsigned long long)le64_to_cpu(fe->i_blkno)); |
278 | 278 | ||
279 | inode->i_nlink = le16_to_cpu(fe->i_links_count); | 279 | inode->i_nlink = ocfs2_read_links_count(fe); |
280 | 280 | ||
281 | if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) { | 281 | if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) { |
282 | OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SYSTEM_FILE; | 282 | OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SYSTEM_FILE; |
@@ -1215,7 +1215,7 @@ int ocfs2_mark_inode_dirty(handle_t *handle, | |||
1215 | spin_unlock(&OCFS2_I(inode)->ip_lock); | 1215 | spin_unlock(&OCFS2_I(inode)->ip_lock); |
1216 | 1216 | ||
1217 | fe->i_size = cpu_to_le64(i_size_read(inode)); | 1217 | fe->i_size = cpu_to_le64(i_size_read(inode)); |
1218 | fe->i_links_count = cpu_to_le16(inode->i_nlink); | 1218 | ocfs2_set_links_count(fe, inode->i_nlink); |
1219 | fe->i_uid = cpu_to_le32(inode->i_uid); | 1219 | fe->i_uid = cpu_to_le32(inode->i_uid); |
1220 | fe->i_gid = cpu_to_le32(inode->i_gid); | 1220 | fe->i_gid = cpu_to_le32(inode->i_gid); |
1221 | fe->i_mode = cpu_to_le16(inode->i_mode); | 1221 | fe->i_mode = cpu_to_le16(inode->i_mode); |
@@ -1252,7 +1252,7 @@ void ocfs2_refresh_inode(struct inode *inode, | |||
1252 | OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); | 1252 | OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); |
1253 | ocfs2_set_inode_flags(inode); | 1253 | ocfs2_set_inode_flags(inode); |
1254 | i_size_write(inode, le64_to_cpu(fe->i_size)); | 1254 | i_size_write(inode, le64_to_cpu(fe->i_size)); |
1255 | inode->i_nlink = le16_to_cpu(fe->i_links_count); | 1255 | inode->i_nlink = ocfs2_read_links_count(fe); |
1256 | inode->i_uid = le32_to_cpu(fe->i_uid); | 1256 | inode->i_uid = le32_to_cpu(fe->i_uid); |
1257 | inode->i_gid = le32_to_cpu(fe->i_gid); | 1257 | inode->i_gid = le32_to_cpu(fe->i_gid); |
1258 | inode->i_mode = le16_to_cpu(fe->i_mode); | 1258 | inode->i_mode = le16_to_cpu(fe->i_mode); |