[XFS] xfs_rename: pass resblks to xfs_dir_removename
Similar to rmdir and remove - avoids a potential transaction reservation overrun. SGI-PV: 976035 SGI-Modid: xfs-linux-melb:xfs-kern:30900a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
Родитель
6a7f422d47
Коммит
d4377d8418
|
@ -2241,7 +2241,7 @@ xfs_remove(
|
||||||
*/
|
*/
|
||||||
XFS_BMAP_INIT(&free_list, &first_block);
|
XFS_BMAP_INIT(&free_list, &first_block);
|
||||||
error = xfs_dir_removename(tp, dp, name, ip->i_ino,
|
error = xfs_dir_removename(tp, dp, name, ip->i_ino,
|
||||||
&first_block, &free_list, 0);
|
&first_block, &free_list, resblks);
|
||||||
if (error) {
|
if (error) {
|
||||||
ASSERT(error != ENOENT);
|
ASSERT(error != ENOENT);
|
||||||
REMOVE_DEBUG_TRACE(__LINE__);
|
REMOVE_DEBUG_TRACE(__LINE__);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче