[PATCH] ufs: ubh_ll_rw_block cleanup
In ufs code there is function: ubh_ll_rw_block, it has parameter how many ufs_buffer_head it should handle, but it always called with "1" on the place of this parameter. This patch removes unused parameter of "ubh_ll_wr_block". Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
ee3ffd6c12
commit
098d5af7be
@@ -238,7 +238,7 @@ static int ufs_trunc_indirect (struct inode * inode, unsigned offset, __fs32 *p)
|
||||
ind_ubh = NULL;
|
||||
}
|
||||
if (IS_SYNC(inode) && ind_ubh && ubh_buffer_dirty(ind_ubh)) {
|
||||
ubh_ll_rw_block (SWRITE, 1, &ind_ubh);
|
||||
ubh_ll_rw_block(SWRITE, ind_ubh);
|
||||
ubh_wait_on_buffer (ind_ubh);
|
||||
}
|
||||
ubh_brelse (ind_ubh);
|
||||
@@ -301,7 +301,7 @@ static int ufs_trunc_dindirect (struct inode *inode, unsigned offset, __fs32 *p)
|
||||
dind_bh = NULL;
|
||||
}
|
||||
if (IS_SYNC(inode) && dind_bh && ubh_buffer_dirty(dind_bh)) {
|
||||
ubh_ll_rw_block (SWRITE, 1, &dind_bh);
|
||||
ubh_ll_rw_block(SWRITE, dind_bh);
|
||||
ubh_wait_on_buffer (dind_bh);
|
||||
}
|
||||
ubh_brelse (dind_bh);
|
||||
@@ -361,7 +361,7 @@ static int ufs_trunc_tindirect (struct inode * inode)
|
||||
tind_bh = NULL;
|
||||
}
|
||||
if (IS_SYNC(inode) && tind_bh && ubh_buffer_dirty(tind_bh)) {
|
||||
ubh_ll_rw_block (SWRITE, 1, &tind_bh);
|
||||
ubh_ll_rw_block(SWRITE, tind_bh);
|
||||
ubh_wait_on_buffer (tind_bh);
|
||||
}
|
||||
ubh_brelse (tind_bh);
|
||||
|
Reference in New Issue
Block a user