X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fhpfs%2Fnamei.c;h=10783f3d265abd8876502fa63bebad1be2f3be35;hb=ec38fa2b35f13e7fa1d676a5bc997d0df1b02574;hp=9953cf9a2f16fa1f5b45709c142d2699452c9576;hpb=463020ce428e2f00d4f33a383d6f39c7453a6854;p=linux-2.6-omap-h63xx.git diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c index 9953cf9a2f1..10783f3d265 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); @@ -669,5 +669,5 @@ const struct inode_operations hpfs_dir_iops = .rmdir = hpfs_rmdir, .mknod = hpfs_mknod, .rename = hpfs_rename, - .setattr = hpfs_notify_change, + .setattr = hpfs_setattr, };