diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-16 17:11:02 +0900 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-10-28 01:30:05 +0200 |
commit | e4d5e3a497e159be7c2dbe4c61cfb185d60cfde2 (patch) | |
tree | fdc0fda2f6baf45fac8f572936dd5828b301308a /fs/jbd/checkpoint.c | |
parent | bfa01dfbe0a02f5ba434221c351f0510c06af392 (diff) | |
download | linux-e4d5e3a497e159be7c2dbe4c61cfb185d60cfde2.tar.gz linux-e4d5e3a497e159be7c2dbe4c61cfb185d60cfde2.tar.bz2 linux-e4d5e3a497e159be7c2dbe4c61cfb185d60cfde2.zip |
jbd: Convert atomic_inc() to get_bh()
Convert atomic_inc(&bh->b_count) to get_bh(bh) for consistency.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jbd/checkpoint.c')
-rw-r--r-- | fs/jbd/checkpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jbd/checkpoint.c b/fs/jbd/checkpoint.c index 05a38b9c4c0e..e4b87bc1fa56 100644 --- a/fs/jbd/checkpoint.c +++ b/fs/jbd/checkpoint.c @@ -221,7 +221,7 @@ restart: goto restart; } if (buffer_locked(bh)) { - atomic_inc(&bh->b_count); + get_bh(bh); spin_unlock(&journal->j_list_lock); jbd_unlock_bh_state(bh); wait_on_buffer(bh); @@ -283,7 +283,7 @@ static int __process_buffer(journal_t *journal, struct journal_head *jh, int ret = 0; if (buffer_locked(bh)) { - atomic_inc(&bh->b_count); + get_bh(bh); spin_unlock(&journal->j_list_lock); jbd_unlock_bh_state(bh); wait_on_buffer(bh); |