Skip to content

Btrfs: some cleanups around btrfs_read_fs_root_no_name()

Stefan Behrens linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Btrfs: delete unused functionfs/btrfs/delayed-inode.c+0 -140 replies
2/3Btrfs: cleanup, btrfs_read_fs_root_no_name() doesn't return NULLfs/btrfs/send.c+2 -60 replies
3/3Btrfs: cleanup: don't check the same thing twicefs/btrfs/export.c fs/btrfs/file.c fs/btrfs/inode.c +2 more+0 -270 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Btrfs: some cleanups around btrfs_read_fs_root_no_name()

Just some line deletions for callers of btrfs_read_fs_root_no_name(). They repeat the check for btrfs_root_refs() after calling btrfs_read_fs_root_no_name() and map the error to ENOENT in this case, and btrfs_read_fs_root_no_name() already does the same for you. send.c even checked the result for NULL which cannot happen. And one static inline function in delayed-inode.c that called btrfs_read_fs_root_no_name() was not at all used anymore.

Stefan Behrens (3):
Btrfs: delete unused function
Btrfs: cleanup, btrfs_read_fs_root_no_name() doesn't return NULL
Btrfs: cleanup: don't check the same thing twice

 fs/btrfs/delayed-inode.c | 14 --------------
 fs/btrfs/export.c        |  5 -----
 fs/btrfs/file.c          |  4 ----
 fs/btrfs/inode.c         | 10 ----------
 fs/btrfs/ioctl.c         |  5 -----
 fs/btrfs/send.c          |  8 ++------
 fs/btrfs/super.c         |  3 ---
 7 files changed, 2 insertions(+), 47 deletions(-)
Signature · 1 line
1.8.2.2