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

+10 -20
+1 -11
fs/xfs/linux-2.6/mutex.h
··· 18 18 #ifndef __XFS_SUPPORT_MUTEX_H__ 19 19 #define __XFS_SUPPORT_MUTEX_H__ 20 20 21 - #include <linux/spinlock.h> 22 21 #include <linux/mutex.h> 23 22 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) 23 + typedef struct mutex mutex_t; 34 24 35 25 #endif /* __XFS_SUPPORT_MUTEX_H__ */
+8 -8
fs/xfs/linux-2.6/xfs_iops.c
··· 56 56 #include <linux/namei.h> 57 57 #include <linux/security.h> 58 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 59 /* 63 60 * Get a XFS inode from a given vnode. 64 61 */ ··· 471 474 472 475 error = 0; 473 476 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 */ 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 + } 479 485 } 480 486 return -error; 481 487 }
+1 -1
fs/xfs/quota/xfs_qm.c
··· 167 167 xqm->qm_dqfree_ratio = XFS_QM_DQFREE_RATIO; 168 168 xqm->qm_nrefs = 0; 169 169 #ifdef DEBUG 170 - xfs_mutex_init(&qcheck_lock, MUTEX_DEFAULT, "qchk"); 170 + mutex_init(&qcheck_lock); 171 171 #endif 172 172 return xqm; 173 173 }