]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/jbd/commit.c
jbd: Convert atomic_inc() to get_bh()
[net-next-2.6.git] / fs / jbd / commit.c
index c8428323167f1f8c242f1dddd4ccc2ce184dce9d..a89c4630b1ed8a0048a36cfb9718d9aaba3a08ec 100644 (file)
@@ -611,7 +611,7 @@ void journal_commit_transaction(journal_t *journal)
                /* Bump b_count to prevent truncate from stumbling over
                    the shadowed buffer!  @@@ This can go if we ever get
                    rid of the BJ_IO/BJ_Shadow pairing of buffers. */
-               atomic_inc(&jh2bh(jh)->b_count);
+               get_bh(jh2bh(jh));
 
                /* Make a temporary IO buffer with which to write it out
                    (this will requeue both the metadata buffer and the