Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138838
b: refs/heads/master
c: 600ed41
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Mahoney authored and Linus Torvalds committed Mar 30, 2009
1 parent 7b66ba2 commit 653a6b7
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 702d21c6f6c790b12c4820cd2f29bc8472aed633
refs/heads/master: 600ed41675d8c384519d8f0b3c76afed39ef2f4b
46 changes: 23 additions & 23 deletions trunk/fs/reiserfs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ static inline void put_journal_list(struct super_block *s,
struct reiserfs_journal_list *jl)
{
if (jl->j_refcount < 1) {
reiserfs_panic(s, "trans id %lu, refcount at %d",
reiserfs_panic(s, "trans id %u, refcount at %d",
jl->j_trans_id, jl->j_refcount);
}
if (--jl->j_refcount == 0)
Expand All @@ -599,7 +599,7 @@ static void cleanup_freed_for_journal_list(struct super_block *p_s_sb,
}

static int journal_list_still_alive(struct super_block *s,
unsigned long trans_id)
unsigned int trans_id)
{
struct reiserfs_journal *journal = SB_JOURNAL(s);
struct list_head *entry = &journal->j_journal_list;
Expand Down Expand Up @@ -933,9 +933,9 @@ static int flush_older_commits(struct super_block *s,
struct reiserfs_journal_list *other_jl;
struct reiserfs_journal_list *first_jl;
struct list_head *entry;
unsigned long trans_id = jl->j_trans_id;
unsigned long other_trans_id;
unsigned long first_trans_id;
unsigned int trans_id = jl->j_trans_id;
unsigned int other_trans_id;
unsigned int first_trans_id;

find_first:
/*
Expand Down Expand Up @@ -1014,7 +1014,7 @@ static int flush_commit_list(struct super_block *s,
int i;
b_blocknr_t bn;
struct buffer_head *tbh = NULL;
unsigned long trans_id = jl->j_trans_id;
unsigned int trans_id = jl->j_trans_id;
struct reiserfs_journal *journal = SB_JOURNAL(s);
int barrier = 0;
int retval = 0;
Expand Down Expand Up @@ -1275,7 +1275,7 @@ static void remove_all_from_journal_list(struct super_block *p_s_sb,
*/
static int _update_journal_header_block(struct super_block *p_s_sb,
unsigned long offset,
unsigned long trans_id)
unsigned int trans_id)
{
struct reiserfs_journal_header *jh;
struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb);
Expand Down Expand Up @@ -1329,7 +1329,7 @@ static int _update_journal_header_block(struct super_block *p_s_sb,

static int update_journal_header_block(struct super_block *p_s_sb,
unsigned long offset,
unsigned long trans_id)
unsigned int trans_id)
{
return _update_journal_header_block(p_s_sb, offset, trans_id);
}
Expand All @@ -1344,7 +1344,7 @@ static int flush_older_journal_lists(struct super_block *p_s_sb,
struct list_head *entry;
struct reiserfs_journal_list *other_jl;
struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb);
unsigned long trans_id = jl->j_trans_id;
unsigned int trans_id = jl->j_trans_id;

/* we know we are the only ones flushing things, no extra race
* protection is required.
Expand Down Expand Up @@ -1758,13 +1758,13 @@ static int dirty_one_transaction(struct super_block *s,
static int kupdate_transactions(struct super_block *s,
struct reiserfs_journal_list *jl,
struct reiserfs_journal_list **next_jl,
unsigned long *next_trans_id,
unsigned int *next_trans_id,
int num_blocks, int num_trans)
{
int ret = 0;
int written = 0;
int transactions_flushed = 0;
unsigned long orig_trans_id = jl->j_trans_id;
unsigned int orig_trans_id = jl->j_trans_id;
struct buffer_chunk chunk;
struct list_head *entry;
struct reiserfs_journal *journal = SB_JOURNAL(s);
Expand Down Expand Up @@ -1833,7 +1833,7 @@ static int flush_used_journal_lists(struct super_block *s,
int limit = 256;
struct reiserfs_journal_list *tjl;
struct reiserfs_journal_list *flush_jl;
unsigned long trans_id;
unsigned int trans_id;
struct reiserfs_journal *journal = SB_JOURNAL(s);

flush_jl = tjl = jl;
Expand Down Expand Up @@ -2023,7 +2023,7 @@ static int journal_compare_desc_commit(struct super_block *p_s_sb,
*/
static int journal_transaction_is_valid(struct super_block *p_s_sb,
struct buffer_head *d_bh,
unsigned long *oldest_invalid_trans_id,
unsigned int *oldest_invalid_trans_id,
unsigned long *newest_mount_id)
{
struct reiserfs_journal_desc *desc;
Expand Down Expand Up @@ -2124,18 +2124,18 @@ static void brelse_array(struct buffer_head **heads, int num)
static int journal_read_transaction(struct super_block *p_s_sb,
unsigned long cur_dblock,
unsigned long oldest_start,
unsigned long oldest_trans_id,
unsigned int oldest_trans_id,
unsigned long newest_mount_id)
{
struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb);
struct reiserfs_journal_desc *desc;
struct reiserfs_journal_commit *commit;
unsigned long trans_id = 0;
unsigned int trans_id = 0;
struct buffer_head *c_bh;
struct buffer_head *d_bh;
struct buffer_head **log_blocks = NULL;
struct buffer_head **real_blocks = NULL;
unsigned long trans_offset;
unsigned int trans_offset;
int i;
int trans_half;

Expand Down Expand Up @@ -2356,8 +2356,8 @@ static int journal_read(struct super_block *p_s_sb)
{
struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb);
struct reiserfs_journal_desc *desc;
unsigned long oldest_trans_id = 0;
unsigned long oldest_invalid_trans_id = 0;
unsigned int oldest_trans_id = 0;
unsigned int oldest_invalid_trans_id = 0;
time_t start;
unsigned long oldest_start = 0;
unsigned long cur_dblock = 0;
Expand Down Expand Up @@ -2970,7 +2970,7 @@ static void wake_queued_writers(struct super_block *s)
wake_up(&journal->j_join_wait);
}

static void let_transaction_grow(struct super_block *sb, unsigned long trans_id)
static void let_transaction_grow(struct super_block *sb, unsigned int trans_id)
{
struct reiserfs_journal *journal = SB_JOURNAL(sb);
unsigned long bcount = journal->j_bcount;
Expand Down Expand Up @@ -3001,7 +3001,7 @@ static int do_journal_begin_r(struct reiserfs_transaction_handle *th,
int join)
{
time_t now = get_seconds();
int old_trans_id;
unsigned int old_trans_id;
struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb);
struct reiserfs_transaction_handle myth;
int sched_count = 0;
Expand Down Expand Up @@ -3824,7 +3824,7 @@ static int __commit_trans_jl(struct inode *inode, unsigned long id,

int reiserfs_commit_for_inode(struct inode *inode)
{
unsigned long id = REISERFS_I(inode)->i_trans_id;
unsigned int id = REISERFS_I(inode)->i_trans_id;
struct reiserfs_journal_list *jl = REISERFS_I(inode)->i_jl;

/* for the whole inode, assume unset id means it was
Expand Down Expand Up @@ -3938,15 +3938,15 @@ static int do_journal_end(struct reiserfs_transaction_handle *th,
struct reiserfs_journal_list *jl, *temp_jl;
struct list_head *entry, *safe;
unsigned long jindex;
unsigned long commit_trans_id;
unsigned int commit_trans_id;
int trans_half;

BUG_ON(th->t_refcount > 1);
BUG_ON(!th->t_trans_id);

/* protect flush_older_commits from doing mistakes if the
transaction ID counter gets overflowed. */
if (th->t_trans_id == ~0UL)
if (th->t_trans_id == ~0U)
flags |= FLUSH_ALL | COMMIT_NOW | WAIT;
flush = flags & FLUSH_ALL;
wait_on_commit = flags & WAIT;
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/reiserfs/procfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,15 @@ static int show_journal(struct seq_file *m, struct super_block *sb)
/* incore fields */
"j_1st_reserved_block: \t%i\n"
"j_state: \t%li\n"
"j_trans_id: \t%lu\n"
"j_trans_id: \t%u\n"
"j_mount_id: \t%lu\n"
"j_start: \t%lu\n"
"j_len: \t%lu\n"
"j_len_alloc: \t%lu\n"
"j_wcount: \t%i\n"
"j_bcount: \t%lu\n"
"j_first_unflushed_offset: \t%lu\n"
"j_last_flush_trans_id: \t%lu\n"
"j_last_flush_trans_id: \t%u\n"
"j_trans_start_time: \t%li\n"
"j_list_bitmap_index: \t%i\n"
"j_must_wait: \t%i\n"
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/reiserfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ struct reiserfs_transaction_handle {
int t_refcount;
int t_blocks_logged; /* number of blocks this writer has logged */
int t_blocks_allocated; /* number of blocks this writer allocated */
unsigned long t_trans_id; /* sanity check, equals the current trans id */
unsigned int t_trans_id; /* sanity check, equals the current trans id */
void *t_handle_save; /* save existing current->journal_info */
unsigned displace_new_blocks:1; /* if new block allocation occurres, that block
should be displaced from others */
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/reiserfs_fs_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct reiserfs_inode_info {
/* we use these for fsync or O_SYNC to decide which transaction
** needs to be committed in order for this inode to be properly
** flushed */
unsigned long i_trans_id;
unsigned int i_trans_id;
struct reiserfs_journal_list *i_jl;
struct mutex i_mmap;
#ifdef CONFIG_REISERFS_FS_POSIX_ACL
Expand Down
8 changes: 4 additions & 4 deletions trunk/include/linux/reiserfs_fs_sb.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct reiserfs_journal_list {
atomic_t j_commit_left;
atomic_t j_older_commits_done; /* all commits older than this on disk */
struct mutex j_commit_mutex;
unsigned long j_trans_id;
unsigned int j_trans_id;
time_t j_timestamp;
struct reiserfs_list_bitmap *j_list_bitmap;
struct buffer_head *j_commit_bh; /* commit buffer head */
Expand Down Expand Up @@ -185,7 +185,7 @@ struct reiserfs_journal {
int j_1st_reserved_block; /* first block on s_dev of reserved area journal */

unsigned long j_state;
unsigned long j_trans_id;
unsigned int j_trans_id;
unsigned long j_mount_id;
unsigned long j_start; /* start of current waiting commit (index into j_ap_blocks) */
unsigned long j_len; /* length of current waiting commit */
Expand Down Expand Up @@ -226,10 +226,10 @@ struct reiserfs_journal {
int j_num_work_lists; /* number that need attention from kreiserfsd */

/* debugging to make sure things are flushed in order */
int j_last_flush_id;
unsigned int j_last_flush_id;

/* debugging to make sure things are committed in order */
int j_last_commit_id;
unsigned int j_last_commit_id;

struct list_head j_bitmap_nodes;
struct list_head j_dirty_buffers;
Expand Down

0 comments on commit 653a6b7

Please sign in to comment.