[PATCH v3 1/4] bcachefs: drop duplicate fiemap sync flag

Brian Foster
2024-04-08T14:46:51Z

FIEMAP_FLAG_SYNC handling was deliberately moved into core code in
commit 45dd052e67ad ("fs: handle FIEMAP_FLAG_SYNC in fiemap_prep"),
released in kernel v5.8. Update bcachefs accordingly.

Signed-off-by: Brian Foster <bfoster@redhat.com>
---
fs/bcachefs/fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c
index b5ea9fa1259d..137ce028bc3c 100644
--- a/fs/bcachefs/fs.c
+++ b/fs/bcachefs/fs.c
@@ -967,7 +967,7 @@ static int bch2_fiemap(struct inode *vinode, struct fiemap_extent_info *info,
u32 snapshot;
int ret = 0;

- ret = fiemap_prep(&ei->v, info, start, &len, FIEMAP_FLAG_SYNC);
+ ret = fiemap_prep(&ei->v, info, start, &len, 0);
if (ret)
return ret;

--
2.44.0