Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223590
b: refs/heads/master
c: 8ac33dc
h: refs/heads/master
v: v3
  • Loading branch information
Tao Ma authored and Joel Becker committed Dec 16, 2010
1 parent 2bfd99e commit d83a9cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41b41a26d4d6e4e3ad877d02377844ab9552dc16
refs/heads/master: 8ac33dc86d37ca76d282aa112d4f2794a731064e
4 changes: 4 additions & 0 deletions trunk/fs/ocfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2461,8 +2461,10 @@ static int ocfs2_dx_dir_attach_index(struct ocfs2_super *osb,

di->i_dx_root = cpu_to_le64(dr_blkno);

spin_lock(&OCFS2_I(dir)->ip_lock);
OCFS2_I(dir)->ip_dyn_features |= OCFS2_INDEXED_DIR_FL;
di->i_dyn_features = cpu_to_le16(OCFS2_I(dir)->ip_dyn_features);
spin_unlock(&OCFS2_I(dir)->ip_lock);

ocfs2_journal_dirty(handle, di_bh);

Expand Down Expand Up @@ -4466,8 +4468,10 @@ static int ocfs2_dx_dir_remove_index(struct inode *dir,
goto out_commit;
}

spin_lock(&OCFS2_I(dir)->ip_lock);
OCFS2_I(dir)->ip_dyn_features &= ~OCFS2_INDEXED_DIR_FL;
di->i_dyn_features = cpu_to_le16(OCFS2_I(dir)->ip_dyn_features);
spin_unlock(&OCFS2_I(dir)->ip_lock);
di->i_dx_root = cpu_to_le64(0ULL);

ocfs2_journal_dirty(handle, di_bh);
Expand Down

0 comments on commit d83a9cc

Please sign in to comment.