From: Qu Wenruo Date: Tue, 22 Dec 2020 05:59:23 +0000 (+0800) Subject: btrfs: make btrfs_dio_private::bytes u32 X-Git-Tag: v5.12-rc1~165^2~127 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=523929f1cac3e869492ea376c9d86af11ec0e5c5;p=linux-platform-drivers-x86.git btrfs: make btrfs_dio_private::bytes u32 btrfs_dio_private::bytes is only assigned from bio::bi_iter::bi_size, which is never larger than U32. Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index d9bf53d9ff90..28e202e89660 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -325,7 +325,8 @@ struct btrfs_dio_private { struct inode *inode; u64 logical_offset; u64 disk_bytenr; - u64 bytes; + /* Used for bio::bi_size */ + u32 bytes; /* * References to this structure. There is one reference per in-flight