aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r--fs/xfs/xfs_attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c
index e5e91e9c7e89..acf1b7c9f1db 100644
--- a/fs/xfs/xfs_attr.c
+++ b/fs/xfs/xfs_attr.c
@@ -2522,7 +2522,7 @@ attr_user_capable(
2522 struct vnode *vp, 2522 struct vnode *vp,
2523 cred_t *cred) 2523 cred_t *cred)
2524{ 2524{
2525 struct inode *inode = LINVFS_GET_IP(vp); 2525 struct inode *inode = vn_to_inode(vp);
2526 2526
2527 if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) 2527 if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
2528 return -EPERM; 2528 return -EPERM;
@@ -2540,7 +2540,7 @@ attr_trusted_capable(
2540 struct vnode *vp, 2540 struct vnode *vp,
2541 cred_t *cred) 2541 cred_t *cred)
2542{ 2542{
2543 struct inode *inode = LINVFS_GET_IP(vp); 2543 struct inode *inode = vn_to_inode(vp);
2544 2544
2545 if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) 2545 if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
2546 return -EPERM; 2546 return -EPERM;