History

xfs: remove the possibly unused mp variable in xfs_file_compat_ioctl

The mp variable in xfs_file_compat_ioctl is only used when BROKEN_X86_ALIGNMENT is define. Remove it and just open code the dereference in a few places.

Christoph Hellwig committed 5 years ago

Commit f69e8091 parent f736d931 file · +3 −4Browse files

Unified · Split

fs/xfs/xfs_ioctl32.c+3−4
@@ -438,7 +438,6 @@ xfs_file_compat_ioctl( · 437 unmodified lines
438438 {
439439 struct inode *inode = file_inode(filp);
440440 struct xfs_inode *ip = XFS_I(inode);
441− struct xfs_mount *mp = ip->i_mount;
442441 void __user *arg = compat_ptr(p);
443442 int error;
444443
@@ -458,7 +457,7 @@ xfs_file_compat_ioctl( · 13 unmodified lines
458457 return xfs_ioc_space(filp, &bf);
459458 }
460459 case XFS_IOC_FSGEOMETRY_V1_32:
461− return xfs_compat_ioc_fsgeometry_v1(mp, arg);
460+ return xfs_compat_ioc_fsgeometry_v1(ip->i_mount, arg);
462461 case XFS_IOC_FSGROWFSDATA_32: {
463462 struct xfs_growfs_data in;
464463
@@ -467,7 +466,7 @@ xfs_file_compat_ioctl( · 2 unmodified lines
467466 error = mnt_want_write_file(filp);
468467 if (error)
469468 return error;
470− error = xfs_growfs_data(mp, &in);
469+ error = xfs_growfs_data(ip->i_mount, &in);
471470 mnt_drop_write_file(filp);
472471 return error;
473472 }
@@ -479,7 +478,7 @@ xfs_file_compat_ioctl( · 5 unmodified lines
479478 error = mnt_want_write_file(filp);
480479 if (error)
481480 return error;
482− error = xfs_growfs_rt(mp, &in);
481+ error = xfs_growfs_rt(ip->i_mount, &in);
483482 mnt_drop_write_file(filp);
484483 return error;
485484 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t