jbd2: move lockdep tracking to journal_s
authorJan Kara <jack@suse.cz>
Thu, 30 Jun 2016 15:39:38 +0000 (11:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 30 Jun 2016 15:39:38 +0000 (11:39 -0400)
commitab714aff4f744f52f0beae93ed441f2f5585eb7a
tree2c62c6356d6445d05492d3838e2acfc27db4192c
parent7a4b188f0c0b49ed8ae41489494a9669ad7f1f8c
jbd2: move lockdep tracking to journal_s

Currently lockdep map is tracked in each journal handle. To be able to
expand lockdep support to cover also other cases where we depend on
transaction commit and where handle is not available, move lockdep map
into struct journal_s. Since this makes the lockdep map shared for all
handles, we have to use rwsem_acquire_read() for acquisitions now.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c
fs/jbd2/transaction.c
include/linux/jbd2.h