ocfs2: Hold ip_lock when set/clear flags for indexed dir.
authorTao Ma <boyu.mt@taobao.com>
Wed, 15 Dec 2010 08:30:00 +0000 (16:30 +0800)
committerJoel Becker <joel.becker@oracle.com>
Thu, 16 Dec 2010 08:36:15 +0000 (00:36 -0800)
commit8ac33dc86d37ca76d282aa112d4f2794a731064e
tree1631d3643087ebb52da9eb8ec084e7191ab20e75
parent41b41a26d4d6e4e3ad877d02377844ab9552dc16
ocfs2: Hold ip_lock when set/clear flags for indexed dir.

When we set/clear the dyn_features for an inode we hold the ip_lock.
So do it when we set/clear OCFS2_INDEXED_DIR_FL also.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dir.c