mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
remove SWRITE* I/O types
These flags aren't real I/O types, but tell ll_rw_block to always lock the buffer instead of giving up on a failed trylock. Instead add a new write_dirty_buffer helper that implements this semantic and use it from the existing SWRITE* callers. Note that the ll_rw_block code had a bug where it didn't promote WRITE_SYNC_PLUG properly, which this patch fixes. In the ufs code clean up the helper that used to call ll_rw_block to mirror sync_dirty_buffer, which is the function it implements for compound buffers. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
87e99511ea
commit
9cb569d601
16 changed files with 73 additions and 94 deletions
|
|
@ -2311,7 +2311,7 @@ static int journal_read_transaction(struct super_block *sb,
|
|||
/* flush out the real blocks */
|
||||
for (i = 0; i < get_desc_trans_len(desc); i++) {
|
||||
set_buffer_dirty(real_blocks[i]);
|
||||
ll_rw_block(SWRITE, 1, real_blocks + i);
|
||||
write_dirty_buffer(real_blocks[i], WRITE);
|
||||
}
|
||||
for (i = 0; i < get_desc_trans_len(desc); i++) {
|
||||
wait_on_buffer(real_blocks[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue