Skip to content

cleanup rdonly flag and BTRFS_FS_OPEN flag

Anand Jain linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/23 patches 4 repliesIn review
  2. v1 posting 1/23 patches 0 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: wrap rdonly check into btrfs_fs_is_rdonlyfs/btrfs/block-group.c fs/btrfs/ctree.h fs/btrfs/dev-replace.c +8 more+34 -244 replies
2/3btrfs: wrap check for BTRFS_FS_OPEN flag into functionfs/btrfs/block-group.c fs/btrfs/ctree.h fs/btrfs/disk-io.c +1 more+9 -40 replies
3/3btrfs: set BTRFS_FS_OPEN flag for both rdonly and rwfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/super.c+22 -220 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RESEND PATCH 0/3] cleanup rdonly flag and BTRFS_FS_OPEN flag

Patch 1/3 brings the check for the rdonly to a new function btrfs_fs_is_rdonly().

Patch 2/3 wraps the check for BTRFS_FS_OPEN flag into btrfs_fs_state_is_open_rw().

Patch 3/3 removes the rdonly part from the BTRFS_FS_OPEN flag is true for both rdonly and rw.

Anand Jain (3):
btrfs: wrap rdonly check into btrfs_fs_is_rdonly
btrfs: wrap check for BTRFS_FS_OPEN flag into function
btrfs: set BTRFS_FS_OPEN flag for both rdonly and rw

 fs/btrfs/block-group.c  |  6 ++---
 fs/btrfs/ctree.h        | 19 ++++++++++++++--
 fs/btrfs/dev-replace.c  |  2 +-
 fs/btrfs/disk-io.c      | 50 +++++++++++++++++++++--------------------
 fs/btrfs/extent_io.c    |  4 ++--
 fs/btrfs/inode.c        |  2 +-
 fs/btrfs/ioctl.c        |  2 +-
 fs/btrfs/super.c        | 14 +++++-------
 fs/btrfs/sysfs.c        |  4 ++--
 fs/btrfs/tree-checker.c |  2 +-
 fs/btrfs/volumes.c      |  6 ++---
 11 files changed, 63 insertions(+), 48 deletions(-)
Signature · 1 line
2.33.1