diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-03 17:33:38 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-03 17:33:38 -0400 |
| commit | 51102ee5b8853d230e534cbcd0d888f0134738a3 (patch) | |
| tree | 5a34844b3040dbc099dd0d3ebc2e6fca0bc65855 /fs/xfs/linux-2.6/xfs_ioctl.c | |
| parent | 54161df1fb1469d66bce3a3b14d8281adbb69263 (diff) | |
| parent | 6b0a2996a0c023d84bc27ec7528a6e54cb5ea264 (diff) | |
Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs
* 'for-linus' of git://oss.sgi.com/xfs/xfs: (49 commits)
xfs simplify and speed up direct I/O completions
xfs: move aio completion after unwritten extent conversion
direct-io: move aio_complete into ->end_io
xfs: fix big endian build
xfs: clean up xfs_bmap_get_bp
xfs: simplify xfs_truncate_file
xfs: kill the b_strat callback in xfs_buf
xfs: remove obsolete osyncisosync mount option
xfs: clean up filestreams helpers
xfs: fix gcc 4.6 set but not read and unused statement warnings
xfs: Fix build when CONFIG_XFS_POSIX_ACL=n
xfs: fix unsigned underflow in xfs_free_eofblocks
xfs: use GFP_NOFS for page cache allocation
xfs: fix memory reclaim recursion deadlock on locked inode buffer
xfs: fix xfs_trans_add_item() lockdep warnings
xfs: simplify and remove xfs_ireclaim
xfs: don't block on buffer read errors
xfs: move inode shrinker unregister even earlier
xfs: remove a dmapi leftover
xfs: writepage always has buffers
...
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: |
