diff mbox series

btrfs: use blk_opf_t for opf

Message ID c60c370689f63591795394d2c05a4678ebb622b0.1660889735.git.anand.jain@oracle.com (mailing list archive)
State New, archived
Headers show
Series btrfs: use blk_opf_t for opf | expand

Commit Message

Anand Jain Aug. 19, 2022, 7:46 a.m. UTC
Commit bf9486d6dd23 ("fs/btrfs: Use the enum req_op and blk_opf_t
types") is now integrated. We can use blk_opf_t instead of older unsigned int
for opf.

Please roll this into the patch
  [PATCH 03/11] btrfs: pass the operation to btrfs_bio_alloc
in the ML.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 fs/btrfs/volumes.c | 2 +-
 fs/btrfs/volumes.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

David Sterba Aug. 23, 2022, 5:21 p.m. UTC | #1
On Fri, Aug 19, 2022 at 03:46:21PM +0800, Anand Jain wrote:
> Commit bf9486d6dd23 ("fs/btrfs: Use the enum req_op and blk_opf_t
> types") is now integrated. We can use blk_opf_t instead of older unsigned int
> for opf.
> 
> Please roll this into the patch
>   [PATCH 03/11] btrfs: pass the operation to btrfs_bio_alloc

Folded to the patch, thanks.
diff mbox series

Patch

diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 19c1d4df87c8..a41e7c3cd112 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -6627,7 +6627,7 @@  static inline void btrfs_bio_init(struct btrfs_bio *bbio)
  * Just like the underlying bio_alloc_bioset it will no fail as it is backed by
  * a mempool.
  */
-struct bio *btrfs_bio_alloc(unsigned int nr_vecs, unsigned int opf)
+struct bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf)
 {
 	struct bio *bio;
 
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index bd108c7ed1ac..d057c385f17f 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -393,7 +393,7 @@  static inline struct btrfs_bio *btrfs_bio(struct bio *bio)
 	return container_of(bio, struct btrfs_bio, bio);
 }
 
-struct bio *btrfs_bio_alloc(unsigned int nr_vecs, unsigned int opf);
+struct bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf);
 struct bio *btrfs_bio_clone_partial(struct bio *orig, u64 offset, u64 size);
 
 static inline void btrfs_bio_free_csum(struct btrfs_bio *bbio)