X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Ffcntl.c;h=e632da761fc11cd19b8637bcad23b1f5562d7382;hb=4c195ad88b7df54b2e7340dec3446aee6ca84cd1;hp=c9db73fc5e3d2d2e137bab66724d4c91f3d7544c;hpb=347c53dca73fca317d57781f510f5ff4f6c0d0d7;p=linux-2.6-omap-h63xx.git diff --git a/fs/fcntl.c b/fs/fcntl.c index c9db73fc5e3..e632da761fc 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -18,12 +18,13 @@ #include #include #include +#include #include #include #include -void fastcall set_close_on_exec(unsigned int fd, int flag) +void set_close_on_exec(unsigned int fd, int flag) { struct files_struct *files = current->files; struct fdtable *fdt; @@ -292,7 +293,7 @@ int f_setown(struct file *filp, unsigned long arg, int force) who = -who; } rcu_read_lock(); - pid = find_pid(who); + pid = find_vpid(who); result = __f_setown(filp, pid, type, force); rcu_read_unlock(); return result; @@ -308,7 +309,7 @@ pid_t f_getown(struct file *filp) { pid_t pid; read_lock(&filp->f_owner.lock); - pid = pid_nr(filp->f_owner.pid); + pid = pid_vnr(filp->f_owner.pid); if (filp->f_owner.pid_type == PIDTYPE_PGID) pid = -pid; read_unlock(&filp->f_owner.lock);