projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a7f422
)
[XFS] xfs_rename: pass resblks to xfs_dir_removename
author
Christoph Hellwig
<hch@infradead.org>
Tue, 22 Apr 2008 07:33:46 +0000
(17:33 +1000)
committer
Lachlan McIlroy
<lachlan@redback.melbourne.sgi.com>
Tue, 29 Apr 2008 05:53:41 +0000
(15:53 +1000)
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>
fs/xfs/xfs_vnodeops.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_vnodeops.c
b/fs/xfs/xfs_vnodeops.c
index 04f3e302feee2d3e728519a091c259a5b4d391c4..7093d749589b4931b3d691c4c117a27db5ad6a06 100644
(file)
--- a/
fs/xfs/xfs_vnodeops.c
+++ b/
fs/xfs/xfs_vnodeops.c
@@
-2241,7
+2241,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__);