diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_acl.c')
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_acl.c | 14 | 
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/xfs/linux-2.6/xfs_acl.c b/fs/xfs/linux-2.6/xfs_acl.c index 2512125dfa7c..bf85bbe4a9ae 100644 --- a/fs/xfs/linux-2.6/xfs_acl.c +++ b/fs/xfs/linux-2.6/xfs_acl.c @@ -106,7 +106,7 @@ xfs_get_acl(struct inode *inode, int type)  	struct posix_acl *acl;  	struct xfs_acl *xfs_acl;  	int len = sizeof(struct xfs_acl); -	char *ea_name; +	unsigned char *ea_name;  	int error;  	acl = get_cached_acl(inode, type); @@ -133,7 +133,8 @@ xfs_get_acl(struct inode *inode, int type)  	if (!xfs_acl)  		return ERR_PTR(-ENOMEM); -	error = -xfs_attr_get(ip, ea_name, (char *)xfs_acl, &len, ATTR_ROOT); +	error = -xfs_attr_get(ip, ea_name, (unsigned char *)xfs_acl, +							&len, ATTR_ROOT);  	if (error) {  		/*  		 * If the attribute doesn't exist make sure we have a negative @@ -162,7 +163,7 @@ STATIC int  xfs_set_acl(struct inode *inode, int type, struct posix_acl *acl)  {  	struct xfs_inode *ip = XFS_I(inode); -	char *ea_name; +	unsigned char *ea_name;  	int error;  	if (S_ISLNK(inode->i_mode)) @@ -194,7 +195,7 @@ xfs_set_acl(struct inode *inode, int type, struct posix_acl *acl)  			(sizeof(struct xfs_acl_entry) *  			 (XFS_ACL_MAX_ENTRIES - acl->a_count)); -		error = -xfs_attr_set(ip, ea_name, (char *)xfs_acl, +		error = -xfs_attr_set(ip, ea_name, (unsigned char *)xfs_acl,  				len, ATTR_ROOT);  		kfree(xfs_acl); @@ -251,8 +252,9 @@ xfs_set_mode(struct inode *inode, mode_t mode)  	if (mode != inode->i_mode) {  		struct iattr iattr; -		iattr.ia_valid = ATTR_MODE; +		iattr.ia_valid = ATTR_MODE | ATTR_CTIME;  		iattr.ia_mode = mode; +		iattr.ia_ctime = current_fs_time(inode->i_sb);  		error = -xfs_setattr(XFS_I(inode), &iattr, XFS_ATTR_NOACL);  	} @@ -261,7 +263,7 @@ xfs_set_mode(struct inode *inode, mode_t mode)  }  static int -xfs_acl_exists(struct inode *inode, char *name) +xfs_acl_exists(struct inode *inode, unsigned char *name)  {  	int len = sizeof(struct xfs_acl);  | 
