diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-16 04:11:02 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-10-27 19:30:05 -0400 |
commit | e4d5e3a497e159be7c2dbe4c61cfb185d60cfde2 (patch) | |
tree | fdc0fda2f6baf45fac8f572936dd5828b301308a /fs/jbd/commit.c | |
parent | bfa01dfbe0a02f5ba434221c351f0510c06af392 (diff) |
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/commit.c')
-rw-r--r-- | fs/jbd/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index c8428323167f..a89c4630b1ed 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c | |||
@@ -611,7 +611,7 @@ void journal_commit_transaction(journal_t *journal) | |||
611 | /* Bump b_count to prevent truncate from stumbling over | 611 | /* Bump b_count to prevent truncate from stumbling over |
612 | the shadowed buffer! @@@ This can go if we ever get | 612 | the shadowed buffer! @@@ This can go if we ever get |
613 | rid of the BJ_IO/BJ_Shadow pairing of buffers. */ | 613 | rid of the BJ_IO/BJ_Shadow pairing of buffers. */ |
614 | atomic_inc(&jh2bh(jh)->b_count); | 614 | get_bh(jh2bh(jh)); |
615 | 615 | ||
616 | /* Make a temporary IO buffer with which to write it out | 616 | /* Make a temporary IO buffer with which to write it out |
617 | (this will requeue both the metadata buffer and the | 617 | (this will requeue both the metadata buffer and the |