Merge git://oss.sgi.com:8090/oss/git/xfs-2.6

+10 -20
+1 -11
fs/xfs/linux-2.6/mutex.h
··· 18 #ifndef __XFS_SUPPORT_MUTEX_H__ 19 #define __XFS_SUPPORT_MUTEX_H__ 20 21 - #include <linux/spinlock.h> 22 #include <linux/mutex.h> 23 24 - /* 25 - * Map the mutex'es from IRIX to Linux semaphores. 26 - * 27 - * Destroy just simply initializes to -99 which should block all other 28 - * callers. 29 - */ 30 - #define MUTEX_DEFAULT 0x0 31 - 32 - typedef struct mutex mutex_t; 33 - //#define mutex_destroy(lock) do{}while(0) 34 35 #endif /* __XFS_SUPPORT_MUTEX_H__ */
··· 18 #ifndef __XFS_SUPPORT_MUTEX_H__ 19 #define __XFS_SUPPORT_MUTEX_H__ 20 21 #include <linux/mutex.h> 22 23 + typedef struct mutex mutex_t; 24 25 #endif /* __XFS_SUPPORT_MUTEX_H__ */
+8 -8
fs/xfs/linux-2.6/xfs_iops.c
··· 56 #include <linux/namei.h> 57 #include <linux/security.h> 58 59 - #define IS_NOATIME(inode) ((inode->i_sb->s_flags & MS_NOATIME) || \ 60 - (S_ISDIR(inode->i_mode) && inode->i_sb->s_flags & MS_NODIRATIME)) 61 - 62 /* 63 * Get a XFS inode from a given vnode. 64 */ ··· 471 472 error = 0; 473 VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error); 474 - if (!error && cvp) { 475 - ip = LINVFS_GET_IP(cvp); 476 - d_instantiate(dentry, ip); 477 - validate_fields(dir); 478 - validate_fields(ip); /* size needs update */ 479 } 480 return -error; 481 }
··· 56 #include <linux/namei.h> 57 #include <linux/security.h> 58 59 /* 60 * Get a XFS inode from a given vnode. 61 */ ··· 474 475 error = 0; 476 VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error); 477 + if (likely(!error && cvp)) { 478 + error = linvfs_init_security(cvp, dir); 479 + if (likely(!error)) { 480 + ip = LINVFS_GET_IP(cvp); 481 + d_instantiate(dentry, ip); 482 + validate_fields(dir); 483 + validate_fields(ip); 484 + } 485 } 486 return -error; 487 }
+1 -1
fs/xfs/quota/xfs_qm.c
··· 167 xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO; 168 xqm->qm_nrefs = 0; 169 #ifdef DEBUG 170 - xfs_mutex_init(&qcheck_lock, MUTEX_DEFAULT, "qchk"); 171 #endif 172 return xqm; 173 }
··· 167 xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO; 168 xqm->qm_nrefs = 0; 169 #ifdef DEBUG 170 + mutex_init(&qcheck_lock); 171 #endif 172 return xqm; 173 }