diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-04-22 03:33:46 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-29 01:53:41 -0400 |
commit | d4377d84189349357e1812eaff6d0504766eea06 (patch) | |
tree | 481e076ef3c8758a2f53254ec9b8ddcf405f63c3 /fs | |
parent | 6a7f422d47d4af461704ebb9d7a389d9e59766b2 (diff) |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 04f3e302feee..7093d749589b 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -2241,7 +2241,7 @@ xfs_remove( | |||
2241 | */ | 2241 | */ |
2242 | XFS_BMAP_INIT(&free_list, &first_block); | 2242 | XFS_BMAP_INIT(&free_list, &first_block); |
2243 | error = xfs_dir_removename(tp, dp, name, ip->i_ino, | 2243 | error = xfs_dir_removename(tp, dp, name, ip->i_ino, |
2244 | &first_block, &free_list, 0); | 2244 | &first_block, &free_list, resblks); |
2245 | if (error) { | 2245 | if (error) { |
2246 | ASSERT(error != ENOENT); | 2246 | ASSERT(error != ENOENT); |
2247 | REMOVE_DEBUG_TRACE(__LINE__); | 2247 | REMOVE_DEBUG_TRACE(__LINE__); |