diff options
author | Qu Wenruo <wqu@suse.com> | 2020-12-22 08:59:23 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-02-09 00:58:51 +0300 |
commit | 523929f1cac3e869492ea376c9d86af11ec0e5c5 (patch) | |
tree | a705c20b583b0c48cc0b0ab5b4b520f91e61a548 /fs/btrfs/btrfs_inode.h | |
parent | d7830b7155ab43952ec8f2b95f326f63936ecd03 (diff) | |
download | linux-523929f1cac3e869492ea376c9d86af11ec0e5c5.tar.xz |
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 <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |