GFS2: Switch tr_touched to flag in transaction
This patch eliminates the int variable tr_touched in favor of a new flag in the transaction. This is a step toward reducing contention on the gfs2_log_lock spin_lock. Signed-off-by: Bob Peterson <rpeterso@redhat.com>
This commit is contained in:
@@ -470,15 +470,19 @@ struct gfs2_quota_data {
|
||||
struct rcu_head qd_rcu;
|
||||
};
|
||||
|
||||
enum {
|
||||
TR_TOUCHED = 1,
|
||||
TR_ATTACHED = 2,
|
||||
TR_ALLOCED = 3,
|
||||
};
|
||||
|
||||
struct gfs2_trans {
|
||||
unsigned long tr_ip;
|
||||
|
||||
unsigned int tr_blocks;
|
||||
unsigned int tr_revokes;
|
||||
unsigned int tr_reserved;
|
||||
unsigned int tr_touched:1;
|
||||
unsigned int tr_attached:1;
|
||||
unsigned int tr_alloced:1;
|
||||
unsigned long tr_flags;
|
||||
|
||||
unsigned int tr_num_buf_new;
|
||||
unsigned int tr_num_databuf_new;
|
||||
|
Reference in New Issue
Block a user