linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] btrfs: reuse existing pointers from btrfs_ioctl
@ 2022-01-05  8:30 Sahil Kang
  2022-01-05  8:30 ` [PATCH 1/1] " Sahil Kang
  2022-01-05  9:30 ` [PATCH 0/1] " Qu Wenruo
  0 siblings, 2 replies; 10+ messages in thread
From: Sahil Kang @ 2022-01-05  8:30 UTC (permalink / raw)
  To: linux-btrfs

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(-)

-- 
Sahil


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-01-17 13:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-05  8:30 [PATCH 0/1] btrfs: reuse existing pointers from btrfs_ioctl Sahil Kang
2022-01-05  8:30 ` [PATCH 1/1] " Sahil Kang
2022-01-05  9:53   ` Qu Wenruo
2022-01-06 15:03     ` David Sterba
2022-01-16  2:48       ` [PATCH 0/1] btrfs: reuse existing inode " Sahil Kang
2022-01-16  2:48         ` [PATCH 1/1] " Sahil Kang
2022-01-17 13:39           ` David Sterba
2022-01-06 15:27   ` [PATCH 1/1] btrfs: reuse existing pointers " David Sterba
2022-01-05  9:30 ` [PATCH 0/1] " Qu Wenruo
2022-01-06 15:11   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).