diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-03 21:33:02 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-03 21:51:54 -0500 |
commit | ac124c88859e6520e01d11a346e38f901052d657 (patch) | |
tree | 2a9102c5c02b725507bf33bc0c83b26c7e8fdfa8 /libbcachefs/fs-io.c | |
parent | c560ff06f4798f27aa7b3ae322c83d5a9ba37b13 (diff) |
Update bcachefs sources to 4a32728376a8 bcachefs: bcachefs_metadata_version_inode_depth
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/fs-io.c')
-rw-r--r-- | libbcachefs/fs-io.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libbcachefs/fs-io.c b/libbcachefs/fs-io.c index 33d0e708..94bf34b9 100644 --- a/libbcachefs/fs-io.c +++ b/libbcachefs/fs-io.c @@ -906,11 +906,18 @@ loff_t bch2_remap_file_range(struct file *file_src, loff_t pos_src, bch2_mark_pagecache_unallocated(src, pos_src >> 9, (pos_src + aligned_len) >> 9); + /* + * XXX: we'd like to be telling bch2_remap_range() if we have + * permission to write to the source file, and thus if io path option + * changes should be propagated through the copy, but we need mnt_idmap + * from the pathwalk, awkward + */ ret = bch2_remap_range(c, inode_inum(dst), pos_dst >> 9, inode_inum(src), pos_src >> 9, aligned_len >> 9, - pos_dst + len, &i_sectors_delta); + pos_dst + len, &i_sectors_delta, + false); if (ret < 0) goto err; |