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 <hch@lst.de> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- fs/buffer.c 29 additions, 23 deletionsfs/buffer.c
- fs/fat/misc.c 3 additions, 1 deletionfs/fat/misc.c
- fs/jbd/checkpoint.c 3 additions, 1 deletionfs/jbd/checkpoint.c
- fs/jbd/journal.c 1 addition, 1 deletionfs/jbd/journal.c
- fs/jbd/revoke.c 1 addition, 1 deletionfs/jbd/revoke.c
- fs/jbd2/checkpoint.c 3 additions, 1 deletionfs/jbd2/checkpoint.c
- fs/jbd2/journal.c 1 addition, 1 deletionfs/jbd2/journal.c
- fs/jbd2/revoke.c 1 addition, 1 deletionfs/jbd2/revoke.c
- fs/reiserfs/journal.c 1 addition, 1 deletionfs/reiserfs/journal.c
- fs/ufs/balloc.c 8 additions, 16 deletionsfs/ufs/balloc.c
- fs/ufs/ialloc.c 6 additions, 12 deletionsfs/ufs/ialloc.c
- fs/ufs/truncate.c 6 additions, 12 deletionsfs/ufs/truncate.c
- fs/ufs/util.c 8 additions, 12 deletionsfs/ufs/util.c
- fs/ufs/util.h 1 addition, 2 deletionsfs/ufs/util.h
- include/linux/buffer_head.h 1 addition, 0 deletionsinclude/linux/buffer_head.h
- include/linux/fs.h 0 additions, 9 deletionsinclude/linux/fs.h
Loading
Please register or sign in to comment