Skip to contentSkip to conversation

Documentation vfs.txt, d_delete prototype

PATCH New Frank Schruefer 1 participant 1 message Jul 2, 2005 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation vfs.txt, d_delete prototype

Hy,

Prototype mismatch in docu (2.6.13-rc1 and earlier):

Stone:/usr/src # diff -r -u linux-2.6.13-rc1.UNTOUCHED linux-2.6.13-rc1 --------------------------------SNIPON---------------------------------------

Documentation/filesystems/vfs.txt 2005-07-02 05:04:22.000000000 +0200 renamed from Documentation/filesystems/vfs.txt 2005-06-30 01:00:53.000000000 +0200 +6 -3
diff -r -u linux-2.6.13-rc1.UNTOUCHED/Documentation/filesystems/vfs.txt linux-2.6.13-rc1/Documentation/filesystems/vfs.txt
@@ -422,7 +422,7 @@
        int (*d_revalidate)(struct dentry *);
        int (*d_hash) (struct dentry *, struct qstr *);
        int (*d_compare) (struct dentry *, struct qstr *, struct qstr *);
-       void (*d_delete)(struct dentry *);
+       int (*d_delete)(struct dentry *);
        void (*d_release)(struct dentry *);
        void (*d_iput)(struct dentry *, struct inode *);
 };
@@ -438,7 +438,11 @@
 
   d_delete: called when the last reference to a dentry is
        deleted. This means no-one is using the dentry, however it is
-       still valid and in the dcache
+       still valid and in the dcache.
+       If the return value is non zero the dentry will be tried to
+       be unhashed and killed.
+       If the return value is zero the behaviour is as if the custom
+       routine wouldn't have been called.
 
   d_release: called when a dentry is really deallocated
-------------------------------SNIPOFF---------------------------------------
Signature · 4 lines
Thanks,
   Frank Schruefer
   SITEFORUM Software Europe GmbH
   Germany (Thuringia)