X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fhpfs%2Fnamei.c;h=d9c59a775449ee9abfc27e24ed898ce17d05251a;hb=a9b9e81c915e4a57ac3b21d1a7fa7ff184639780;hp=9953cf9a2f16fa1f5b45709c142d2699452c9576;hpb=8800c0ebf5e8363dab66647512dcef5b83203dec;p=mv-sheeva.git diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c index 9953cf9a2f1..d9c59a77544 100644 --- a/fs/hpfs/namei.c +++ b/fs/hpfs/namei.c @@ -5,7 +5,7 @@ * * adding & removing files & directories */ - +#include #include "hpfs_fn.h" static int hpfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) @@ -415,7 +415,7 @@ again: d_drop(dentry); spin_lock(&dentry->d_lock); if (atomic_read(&dentry->d_count) > 1 || - permission(inode, MAY_WRITE, NULL) || + generic_permission(inode, MAY_WRITE, NULL) || !S_ISREG(inode->i_mode) || get_write_access(inode)) { spin_unlock(&dentry->d_lock);