diff options
Diffstat (limited to 'fs/xfs/xfs_ioctl32.c')
-rw-r--r-- | fs/xfs/xfs_ioctl32.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_ioctl32.c b/fs/xfs/xfs_ioctl32.c index bfc7c7c8a0c8..b88bdc85dd3d 100644 --- a/fs/xfs/xfs_ioctl32.c +++ b/fs/xfs/xfs_ioctl32.c | |||
@@ -375,7 +375,7 @@ xfs_compat_attrlist_by_handle( | |||
375 | goto out_dput; | 375 | goto out_dput; |
376 | 376 | ||
377 | cursor = (attrlist_cursor_kern_t *)&al_hreq.pos; | 377 | cursor = (attrlist_cursor_kern_t *)&al_hreq.pos; |
378 | error = xfs_attr_list(XFS_I(dentry->d_inode), kbuf, al_hreq.buflen, | 378 | error = xfs_attr_list(XFS_I(d_inode(dentry)), kbuf, al_hreq.buflen, |
379 | al_hreq.flags, cursor); | 379 | al_hreq.flags, cursor); |
380 | if (error) | 380 | if (error) |
381 | goto out_kfree; | 381 | goto out_kfree; |
@@ -445,7 +445,7 @@ xfs_compat_attrmulti_by_handle( | |||
445 | switch (ops[i].am_opcode) { | 445 | switch (ops[i].am_opcode) { |
446 | case ATTR_OP_GET: | 446 | case ATTR_OP_GET: |
447 | ops[i].am_error = xfs_attrmulti_attr_get( | 447 | ops[i].am_error = xfs_attrmulti_attr_get( |
448 | dentry->d_inode, attr_name, | 448 | d_inode(dentry), attr_name, |
449 | compat_ptr(ops[i].am_attrvalue), | 449 | compat_ptr(ops[i].am_attrvalue), |
450 | &ops[i].am_length, ops[i].am_flags); | 450 | &ops[i].am_length, ops[i].am_flags); |
451 | break; | 451 | break; |
@@ -454,7 +454,7 @@ xfs_compat_attrmulti_by_handle( | |||
454 | if (ops[i].am_error) | 454 | if (ops[i].am_error) |
455 | break; | 455 | break; |
456 | ops[i].am_error = xfs_attrmulti_attr_set( | 456 | ops[i].am_error = xfs_attrmulti_attr_set( |
457 | dentry->d_inode, attr_name, | 457 | d_inode(dentry), attr_name, |
458 | compat_ptr(ops[i].am_attrvalue), | 458 | compat_ptr(ops[i].am_attrvalue), |
459 | ops[i].am_length, ops[i].am_flags); | 459 | ops[i].am_length, ops[i].am_flags); |
460 | mnt_drop_write_file(parfilp); | 460 | mnt_drop_write_file(parfilp); |
@@ -464,7 +464,7 @@ xfs_compat_attrmulti_by_handle( | |||
464 | if (ops[i].am_error) | 464 | if (ops[i].am_error) |
465 | break; | 465 | break; |
466 | ops[i].am_error = xfs_attrmulti_attr_remove( | 466 | ops[i].am_error = xfs_attrmulti_attr_remove( |
467 | dentry->d_inode, attr_name, | 467 | d_inode(dentry), attr_name, |
468 | ops[i].am_flags); | 468 | ops[i].am_flags); |
469 | mnt_drop_write_file(parfilp); | 469 | mnt_drop_write_file(parfilp); |
470 | break; | 470 | break; |
@@ -504,7 +504,7 @@ xfs_compat_fssetdm_by_handle( | |||
504 | if (IS_ERR(dentry)) | 504 | if (IS_ERR(dentry)) |
505 | return PTR_ERR(dentry); | 505 | return PTR_ERR(dentry); |
506 | 506 | ||
507 | if (IS_IMMUTABLE(dentry->d_inode) || IS_APPEND(dentry->d_inode)) { | 507 | if (IS_IMMUTABLE(d_inode(dentry)) || IS_APPEND(d_inode(dentry))) { |
508 | error = -EPERM; | 508 | error = -EPERM; |
509 | goto out; | 509 | goto out; |
510 | } | 510 | } |
@@ -514,7 +514,7 @@ xfs_compat_fssetdm_by_handle( | |||
514 | goto out; | 514 | goto out; |
515 | } | 515 | } |
516 | 516 | ||
517 | error = xfs_set_dmattrs(XFS_I(dentry->d_inode), fsd.fsd_dmevmask, | 517 | error = xfs_set_dmattrs(XFS_I(d_inode(dentry)), fsd.fsd_dmevmask, |
518 | fsd.fsd_dmstate); | 518 | fsd.fsd_dmstate); |
519 | 519 | ||
520 | out: | 520 | out: |