aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorBoris Burkov <[email protected]>2023-03-28 05:19:48 +0000
committerDavid Sterba <[email protected]>2023-04-17 16:01:21 +0000
commit8725bddf30c1a22aa167419491994e17c5fec93c (patch)
tree8384483cd777fc9549dfd55802c4243abb6d9ddf /fs/btrfs/ordered-data.c
parentbtrfs: add function to create and return an ordered extent (diff)
downloadkernel-8725bddf30c1a22aa167419491994e17c5fec93c.tar.gz
kernel-8725bddf30c1a22aa167419491994e17c5fec93c.zip
btrfs: pass flags as unsigned long to btrfs_add_ordered_extent
The ordered_extent flags are declared as unsigned long, so pass them as such to btrfs_add_ordered_extent. Reviewed-by: Naohiro Aota <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Tested-by: Johannes Thumshirn <[email protected]> Signed-off-by: Boris Burkov <[email protected]> [ hch: split from a larger patch ] Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
-rw-r--r--fs/btrfs/ordered-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index d600f90e1dba..2f68ae1e45b4 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -270,7 +270,7 @@ struct btrfs_ordered_extent *btrfs_alloc_ordered_extent(
*/
int btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset,
u64 num_bytes, u64 ram_bytes, u64 disk_bytenr,
- u64 disk_num_bytes, u64 offset, unsigned flags,
+ u64 disk_num_bytes, u64 offset, unsigned long flags,
int compress_type)
{
struct btrfs_ordered_extent *ordered;