diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
| commit | 5a2cec83a9bb1b4295aa8ab728fcb8ca1811a33c (patch) | |
| tree | 2f83dc6949763e77cf6422e696dc6146684dcf4e /fs/xfs/xfs_acl.c | |
| parent | f2c853bca542f5ac0b036377637192a74f2091c2 (diff) | |
| parent | caf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff) | |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'fs/xfs/xfs_acl.c')
| -rw-r--r-- | fs/xfs/xfs_acl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c index 8d01dce8c532..92fd1d67f878 100644 --- a/fs/xfs/xfs_acl.c +++ b/fs/xfs/xfs_acl.c | |||
| @@ -85,7 +85,7 @@ xfs_acl_vhasacl_default( | |||
| 85 | { | 85 | { |
| 86 | int error; | 86 | int error; |
| 87 | 87 | ||
| 88 | if (vp->v_type != VDIR) | 88 | if (!VN_ISDIR(vp)) |
| 89 | return 0; | 89 | return 0; |
| 90 | xfs_acl_get_attr(vp, NULL, _ACL_TYPE_DEFAULT, ATTR_KERNOVAL, &error); | 90 | xfs_acl_get_attr(vp, NULL, _ACL_TYPE_DEFAULT, ATTR_KERNOVAL, &error); |
| 91 | return (error == 0); | 91 | return (error == 0); |
| @@ -389,7 +389,7 @@ xfs_acl_allow_set( | |||
| 389 | 389 | ||
| 390 | if (vp->v_inode.i_flags & (S_IMMUTABLE|S_APPEND)) | 390 | if (vp->v_inode.i_flags & (S_IMMUTABLE|S_APPEND)) |
| 391 | return EPERM; | 391 | return EPERM; |
| 392 | if (kind == _ACL_TYPE_DEFAULT && vp->v_type != VDIR) | 392 | if (kind == _ACL_TYPE_DEFAULT && !VN_ISDIR(vp)) |
| 393 | return ENOTDIR; | 393 | return ENOTDIR; |
| 394 | if (vp->v_vfsp->vfs_flag & VFS_RDONLY) | 394 | if (vp->v_vfsp->vfs_flag & VFS_RDONLY) |
| 395 | return EROFS; | 395 | return EROFS; |
| @@ -750,7 +750,7 @@ xfs_acl_inherit( | |||
| 750 | * If the new file is a directory, its default ACL is a copy of | 750 | * If the new file is a directory, its default ACL is a copy of |
| 751 | * the containing directory's default ACL. | 751 | * the containing directory's default ACL. |
| 752 | */ | 752 | */ |
| 753 | if (vp->v_type == VDIR) | 753 | if (VN_ISDIR(vp)) |
| 754 | xfs_acl_set_attr(vp, pdaclp, _ACL_TYPE_DEFAULT, &error); | 754 | xfs_acl_set_attr(vp, pdaclp, _ACL_TYPE_DEFAULT, &error); |
| 755 | if (!error && !basicperms) | 755 | if (!error && !basicperms) |
| 756 | xfs_acl_set_attr(vp, cacl, _ACL_TYPE_ACCESS, &error); | 756 | xfs_acl_set_attr(vp, cacl, _ACL_TYPE_ACCESS, &error); |
