aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r--fs/ocfs2/inode.c6
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);