[lkml]   [1997]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject(minor) patch for 2.1.72 fs/namei.c
The attached patch adds a call to shrink_dcache_parent() to the VFS
rmdir routine.

I noticed that the rmdir syscall doesn't include a test to verify that
the object to be deleted is actually a directory. Unless I've overlooked
something, it seems that this test should be added to the generic code
so that each fs doesn't have to include it.

Bill--- fs/namei.c.old Wed Dec 10 00:12:14 1997
+++ fs/namei.c Wed Dec 10 15:50:59 1997
@@ -833,6 +833,9 @@
if (dir->d_inode->i_sb && dir->d_inode->i_sb->dq_op)
dir->d_inode->i_sb->dq_op->initialize(dir->d_inode, -1);

+ if (dentry->d_count > 1)
+ shrink_dcache_parent(dentry);
error = dir->d_inode->i_op->rmdir(dir->d_inode, dentry);

 \ /
  Last update: 2005-03-22 13:40    [W:0.026 / U:1.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site