btrfs: reuse existing pointers from btrfs_ioctl
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | btrfs: reuse existing pointers from btrfs_ioctlfs/ | +11 | 4 replies | |
| 1/1 | btrfs: reuse existing inode from btrfs_ioctlfs/ fs/ fs/ | +21 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Qu Wenruo |
|---|---|
| 1/1 | R-b |
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/1] btrfs: reuse existing pointers from btrfs_ioctl
This is a small cleanup that reuses some of the existing pointers and removes the duplicated dereferencing.
There are other subfunctions that have similar/identical dereferencing as the enclosing btrfs_ioctl, but I'm not sure if changing those is welcomed since it would require changing their arg count. Right now, all of the sub ioctl functions have essentially the same signature.
For example, reusing the pointers for btrfs_ioctl_set_fslabel would require passing in *fs_info and *root, in addition to its current args.
Sahil Kang (1):
btrfs: reuse existing pointers from btrfs_ioctl
fs/btrfs/ioctl.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-)
Signature · 1 line
Sahil