Skip to content

Commit

Permalink
jbd: change the field "b_cow_tid" of struct journal_head from type un…
Browse files Browse the repository at this point in the history
…signed to tid_t

In the definition of struct journal_head, the comment for
the field "unsigned b_cow_tid" says the field tracks the
last transaction id in which this buffer has been cowed.

In the header part of file journal-head.h, it defines
   typedef unsigned int  tid_t;
We should use type tid_t to define transaction id fields.

Change the field "b_cow_tid" of struct journal_head from
type unsigned to tid_t.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Acked-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Wang Sheng-Hui authored and Jan Kara committed Jul 25, 2011
1 parent 2b76aa0 commit 5cf49d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/journal-head.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct journal_head {
* has been cowed
* [jbd_lock_bh_state()]
*/
unsigned b_cow_tid;
tid_t b_cow_tid;

/*
* Copy of the buffer data frozen for writing to the log.
Expand Down

0 comments on commit 5cf49d7

Please sign in to comment.