| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] xfs_rename: pass resblks to xfs_dir_removename |
| From: | Christoph Hellwig <hch@xxxxxx> |
| Date: | Sun, 13 Apr 2008 10:21:49 +0200 |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.3.28i |
Symilar to rmdir and remove - avoids a potential transaction reservation
overrun.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Index: linux-2.6-xfs/fs/xfs/xfs_vnodeops.c
===================================================================
--- linux-2.6-xfs.orig/fs/xfs/xfs_vnodeops.c 2008-04-11 12:22:37.000000000
+0200
+++ linux-2.6-xfs/fs/xfs/xfs_vnodeops.c 2008-04-11 12:23:08.000000000 +0200
@@ -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__);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: error, Paul Amodio |
|---|---|
| Next by Date: | kill usesless IHOLD calls in xfs_rename, Christoph Hellwig |
| Previous by Thread: | RE: error, Paul Amodio |
| Next by Thread: | kill usesless IHOLD calls in xfs_rename, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |