diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl.c')
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl.c | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c index e59a81062830..237f5ffb2ee8 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c | |||
| @@ -23,24 +23,15 @@ | |||
| 23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
| 24 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
| 25 | #include "xfs_ag.h" | 25 | #include "xfs_ag.h" |
| 26 | #include "xfs_dir2.h" | ||
| 27 | #include "xfs_alloc.h" | 26 | #include "xfs_alloc.h" |
| 28 | #include "xfs_dmapi.h" | ||
| 29 | #include "xfs_mount.h" | 27 | #include "xfs_mount.h" |
| 30 | #include "xfs_bmap_btree.h" | 28 | #include "xfs_bmap_btree.h" |
| 31 | #include "xfs_alloc_btree.h" | ||
| 32 | #include "xfs_ialloc_btree.h" | ||
| 33 | #include "xfs_attr_sf.h" | ||
| 34 | #include "xfs_dir2_sf.h" | ||
| 35 | #include "xfs_dinode.h" | 29 | #include "xfs_dinode.h" |
| 36 | #include "xfs_inode.h" | 30 | #include "xfs_inode.h" |
| 37 | #include "xfs_ioctl.h" | 31 | #include "xfs_ioctl.h" |
| 38 | #include "xfs_btree.h" | ||
| 39 | #include "xfs_ialloc.h" | ||
| 40 | #include "xfs_rtalloc.h" | 32 | #include "xfs_rtalloc.h" |
| 41 | #include "xfs_itable.h" | 33 | #include "xfs_itable.h" |
| 42 | #include "xfs_error.h" | 34 | #include "xfs_error.h" |
| 43 | #include "xfs_rw.h" | ||
| 44 | #include "xfs_attr.h" | 35 | #include "xfs_attr.h" |
| 45 | #include "xfs_bmap.h" | 36 | #include "xfs_bmap.h" |
| 46 | #include "xfs_buf_item.h" | 37 | #include "xfs_buf_item.h" |
| @@ -908,7 +899,7 @@ xfs_ioctl_setattr( | |||
| 908 | struct xfs_dquot *olddquot = NULL; | 899 | struct xfs_dquot *olddquot = NULL; |
| 909 | int code; | 900 | int code; |
| 910 | 901 | ||
| 911 | xfs_itrace_entry(ip); | 902 | trace_xfs_ioctl_setattr(ip); |
| 912 | 903 | ||
| 913 | if (mp->m_flags & XFS_MOUNT_RDONLY) | 904 | if (mp->m_flags & XFS_MOUNT_RDONLY) |
| 914 | return XFS_ERROR(EROFS); | 905 | return XFS_ERROR(EROFS); |
| @@ -1043,8 +1034,7 @@ xfs_ioctl_setattr( | |||
| 1043 | } | 1034 | } |
| 1044 | } | 1035 | } |
| 1045 | 1036 | ||
| 1046 | xfs_trans_ijoin(tp, ip, lock_flags); | 1037 | xfs_trans_ijoin(tp, ip); |
| 1047 | xfs_trans_ihold(tp, ip); | ||
| 1048 | 1038 | ||
| 1049 | /* | 1039 | /* |
| 1050 | * Change file ownership. Must be the owner or privileged. | 1040 | * Change file ownership. Must be the owner or privileged. |
| @@ -1116,16 +1106,7 @@ xfs_ioctl_setattr( | |||
| 1116 | xfs_qm_dqrele(udqp); | 1106 | xfs_qm_dqrele(udqp); |
| 1117 | xfs_qm_dqrele(gdqp); | 1107 | xfs_qm_dqrele(gdqp); |
| 1118 | 1108 | ||
| 1119 | if (code) | 1109 | return code; |
| 1120 | return code; | ||
| 1121 | |||
| 1122 | if (DM_EVENT_ENABLED(ip, DM_EVENT_ATTRIBUTE)) { | ||
| 1123 | XFS_SEND_NAMESP(mp, DM_EVENT_ATTRIBUTE, ip, DM_RIGHT_NULL, | ||
| 1124 | NULL, DM_RIGHT_NULL, NULL, NULL, 0, 0, | ||
| 1125 | (mask & FSX_NONBLOCK) ? DM_FLAGS_NDELAY : 0); | ||
| 1126 | } | ||
| 1127 | |||
| 1128 | return 0; | ||
| 1129 | 1110 | ||
| 1130 | error_return: | 1111 | error_return: |
| 1131 | xfs_qm_dqrele(udqp); | 1112 | xfs_qm_dqrele(udqp); |
| @@ -1301,7 +1282,7 @@ xfs_file_ioctl( | |||
| 1301 | if (filp->f_mode & FMODE_NOCMTIME) | 1282 | if (filp->f_mode & FMODE_NOCMTIME) |
| 1302 | ioflags |= IO_INVIS; | 1283 | ioflags |= IO_INVIS; |
| 1303 | 1284 | ||
| 1304 | xfs_itrace_entry(ip); | 1285 | trace_xfs_file_ioctl(ip); |
| 1305 | 1286 | ||
| 1306 | switch (cmd) { | 1287 | switch (cmd) { |
| 1307 | case XFS_IOC_ALLOCSP: | 1288 | case XFS_IOC_ALLOCSP: |
