xfs: fix directory inode iolock lockdep false positive
authorDave Chinner <dchinner@redhat.com>
Thu, 27 Feb 2014 05:51:39 +0000 (16:51 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 27 Feb 2014 05:51:39 +0000 (16:51 +1100)
commit93a8614e3a4dccd526aca34e892ac0b27f64b506
tree494837b23f0f9c4a867537e684903b7f135d9ee4
parenta1358aa3d39251c16c6d8b20945e40bdfc2aad68
xfs: fix directory inode iolock lockdep false positive

The change to add the IO lock to protect the directory extent map
during readdir operations has cause lockdep to have a heart attack
as it now sees a different locking order on inodes w.r.t. the
mmap_sem because readdir has a different ordering to write().

Add a new lockdep class for directory inodes to avoid this false
positive.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iops.c