xfs_rename: pass resblks to xfs_dir_removename
PATCH 1/1 xfs_rename: pass resblks to xfs_dir_removename
Symilar to rmdir and remove - avoids a potential transaction reservation overrun.
Signed-off-by Christoph Hellwig <[email protected]>
fs/xfs/xfs_vnodeops.c +1 -1
@@ -2359,7 +2359,7 @@ xfs_remove(*/ XFS_BMAP_INIT (&free_list, &first_block); error =xfs_dir_removename (tp, dp, name, ip->i_ino, - &first_block, &free_list,0 ); + &first_block, &free_list, resblks);if (error) {ASSERT (error !=ENOENT );REMOVE_DEBUG_TRACE (__LINE__);