]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/dcache.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6.15
[linux-2.6-omap-h63xx.git] / fs / dcache.c
index 7376b61269fb711c230ec1d0161119ce0672fc36..e90512ed35a4eca72e839434a075d1a4b8886c24 100644 (file)
@@ -102,7 +102,8 @@ static inline void dentry_iput(struct dentry * dentry)
                list_del_init(&dentry->d_alias);
                spin_unlock(&dentry->d_lock);
                spin_unlock(&dcache_lock);
-               fsnotify_inoderemove(inode);
+               if (!inode->i_nlink)
+                       fsnotify_inoderemove(inode);
                if (dentry->d_op && dentry->d_op->d_iput)
                        dentry->d_op->d_iput(dentry, inode);
                else
@@ -688,7 +689,7 @@ void shrink_dcache_anon(struct hlist_head *head)
  *
  * In this case we return -1 to tell the caller that we baled.
  */
-static int shrink_dcache_memory(int nr, unsigned int gfp_mask)
+static int shrink_dcache_memory(int nr, gfp_t gfp_mask)
 {
        if (nr) {
                if (!(gfp_mask & __GFP_FS))