diff mbox series

[v2,1/2] btrfs: make btrfs_dio_private::bytes to be u32

Message ID 20201222055924.64724-2-wqu@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs: btrfs_dec_test_*_ordered_extent() refactor | expand

Commit Message

Qu Wenruo Dec. 22, 2020, 5:59 a.m. UTC
btrfs_dio_private::bytes is only assigned from bio::bi_iter::bi_size,
which is no larger than U32.

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 fs/btrfs/btrfs_inode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index d9bf53d9ff90..fbd65807f29d 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -325,7 +325,7 @@  struct btrfs_dio_private {
 	struct inode *inode;
 	u64 logical_offset;
 	u64 disk_bytenr;
-	u64 bytes;
+	u32 bytes;
 
 	/*
 	 * References to this structure. There is one reference per in-flight