]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: save some atomic ops in __JI_COMMIT_RUNNING handling
authorJan Kara <jack@suse.cz>
Tue, 23 Feb 2016 04:20:30 +0000 (23:20 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 23 Feb 2016 04:20:30 +0000 (23:20 -0500)
commit4ebd474f38dd1c0c4ba70d04c348c35a7a4c023d
tree51d6e6c3f5de7a093905fed46d0dcad1ab81ab93
parent7853dc56d0f6c6e5f2da84b064851847348703ff
jbd2: save some atomic ops in __JI_COMMIT_RUNNING handling

Currently we used atomic bit operations to manipulate
__JI_COMMIT_RUNNING bit. However this is unnecessary as i_flags are
always written and read under j_list_lock. So just change the operations
to standard bit operations.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/commit.c
fs/jbd2/journal.c