projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7830b7
)
btrfs: make btrfs_dio_private::bytes u32
author
Qu Wenruo
<wqu@suse.com>
Tue, 22 Dec 2020 05:59:23 +0000
(13:59 +0800)
committer
David Sterba
<dsterba@suse.com>
Mon, 8 Feb 2021 21:58:51 +0000
(22:58 +0100)
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>
fs/btrfs/btrfs_inode.h
patch
|
blob
|
history
diff --git
a/fs/btrfs/btrfs_inode.h
b/fs/btrfs/btrfs_inode.h
index
d9bf53d
..
28e202e
100644
(file)
--- 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