diff options
| author | Jie Liu <[email protected]> | 2013-11-26 21:38:34 +0800 | 
|---|---|---|
| committer | Ben Myers <[email protected]> | 2013-12-09 12:10:30 -0600 | 
| commit | 5a01dd54f4a7fb513062070c5acef20d13cad980 (patch) | |
| tree | 4d99beba9d602ad1b531ecb6bc147ba812ecdc10 /tools/perf/scripts/python/bin/syscall-counts-report | |
| parent | c91c46c12768daac8486dff0f74bc52c2ec974cd (diff) | |
xfs: fix assertion failure at xfs_setattr_nonsize
For CRC enabled v5 super block, change a file's ownership can simply
trigger an ASSERT failure at xfs_setattr_nonsize() if both group and
project quota are enabled, i.e,
[  305.337609] XFS: Assertion failed: !XFS_IS_PQUOTA_ON(mp), file: fs/xfs/xfs_iops.c, line: 621
[  305.339250] Kernel BUG at ffffffffa0a7fa32 [verbose debug info unavailable]
[  305.383939] Call Trace:
[  305.385536]  [<ffffffffa0a7d95a>] xfs_setattr_nonsize+0x69a/0x720 [xfs]
[  305.387142]  [<ffffffffa0a7dea9>] xfs_vn_setattr+0x29/0x70 [xfs]
[  305.388727]  [<ffffffff811ca388>] notify_change+0x1a8/0x350
[  305.390298]  [<ffffffff811ac39d>] chown_common+0xfd/0x110
[  305.391868]  [<ffffffff811ad6bf>] SyS_fchownat+0xaf/0x110
[  305.393440]  [<ffffffff811ad760>] SyS_lchown+0x20/0x30
[  305.394995]  [<ffffffff8170f7dd>] system_call_fastpath+0x1a/0x1f
[  305.399870] RIP  [<ffffffffa0a7fa32>] assfail+0x22/0x30 [xfs]
This fix adjust the assertion to check if the super block support both
quota inodes or not.
Signed-off-by: Jie Liu <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ben Myers <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-report')
0 files changed, 0 insertions, 0 deletions