[PATCH] Change ll_rw_block() calls in UFS
We need to be sure that current data are sent to disk. Hence we call ll_rw_block() with SWRITE. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@ -124,8 +124,7 @@ void ufs_free_inode (struct inode * inode)
|
||||
ubh_mark_buffer_dirty (USPI_UBH);
|
||||
ubh_mark_buffer_dirty (UCPI_UBH);
|
||||
if (sb->s_flags & MS_SYNCHRONOUS) {
|
||||
ubh_wait_on_buffer (UCPI_UBH);
|
||||
ubh_ll_rw_block (WRITE, 1, (struct ufs_buffer_head **) &ucpi);
|
||||
ubh_ll_rw_block (SWRITE, 1, (struct ufs_buffer_head **) &ucpi);
|
||||
ubh_wait_on_buffer (UCPI_UBH);
|
||||
}
|
||||
|
||||
@ -249,8 +248,7 @@ cg_found:
|
||||
ubh_mark_buffer_dirty (USPI_UBH);
|
||||
ubh_mark_buffer_dirty (UCPI_UBH);
|
||||
if (sb->s_flags & MS_SYNCHRONOUS) {
|
||||
ubh_wait_on_buffer (UCPI_UBH);
|
||||
ubh_ll_rw_block (WRITE, 1, (struct ufs_buffer_head **) &ucpi);
|
||||
ubh_ll_rw_block (SWRITE, 1, (struct ufs_buffer_head **) &ucpi);
|
||||
ubh_wait_on_buffer (UCPI_UBH);
|
||||
}
|
||||
sb->s_dirt = 1;
|
||||
|
Reference in New Issue
Block a user