Commit 4a8e4a27 authored by Linus Torvalds's avatar Linus Torvalds
parents 3f02d072 107a09c4
...@@ -18,18 +18,8 @@ ...@@ -18,18 +18,8 @@
#ifndef __XFS_SUPPORT_MUTEX_H__ #ifndef __XFS_SUPPORT_MUTEX_H__
#define __XFS_SUPPORT_MUTEX_H__ #define __XFS_SUPPORT_MUTEX_H__
#include <linux/spinlock.h>
#include <linux/mutex.h> #include <linux/mutex.h>
/* typedef struct mutex mutex_t;
* Map the mutex'es from IRIX to Linux semaphores.
*
* Destroy just simply initializes to -99 which should block all other
* callers.
*/
#define MUTEX_DEFAULT 0x0
typedef struct mutex mutex_t;
//#define mutex_destroy(lock) do{}while(0)
#endif /* __XFS_SUPPORT_MUTEX_H__ */ #endif /* __XFS_SUPPORT_MUTEX_H__ */
...@@ -56,9 +56,6 @@ ...@@ -56,9 +56,6 @@
#include <linux/namei.h> #include <linux/namei.h>
#include <linux/security.h> #include <linux/security.h>
#define IS_NOATIME(inode) ((inode->i_sb->s_flags & MS_NOATIME) || \
(S_ISDIR(inode->i_mode) && inode->i_sb->s_flags & MS_NODIRATIME))
/* /*
* Get a XFS inode from a given vnode. * Get a XFS inode from a given vnode.
*/ */
...@@ -474,11 +471,14 @@ linvfs_symlink( ...@@ -474,11 +471,14 @@ linvfs_symlink(
error = 0; error = 0;
VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error); VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error);
if (!error && cvp) { if (likely(!error && cvp)) {
ip = LINVFS_GET_IP(cvp); error = linvfs_init_security(cvp, dir);
d_instantiate(dentry, ip); if (likely(!error)) {
validate_fields(dir); ip = LINVFS_GET_IP(cvp);
validate_fields(ip); /* size needs update */ d_instantiate(dentry, ip);
validate_fields(dir);
validate_fields(ip);
}
} }
return -error; return -error;
} }
......
...@@ -167,7 +167,7 @@ xfs_Gqm_init(void) ...@@ -167,7 +167,7 @@ xfs_Gqm_init(void)
xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO; xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO;
xqm->qm_nrefs = 0; xqm->qm_nrefs = 0;
#ifdef DEBUG #ifdef DEBUG
xfs_mutex_init(&qcheck_lock, MUTEX_DEFAULT, "qchk"); mutex_init(&qcheck_lock);
#endif #endif
return xqm; return xqm;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment