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)
commitcb0d9d47a39decbdfaeaa5c063467ed21b2c70b3
tree51d6e6c3f5de7a093905fed46d0dcad1ab81ab93
parent1101cd4d13ba2f42c5da4c1b9081f35a73b5df31
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