mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:40:56 +07:00
ocfs2: Use FIEMAP_EXTENT_SHARED
Adds FIEMAP_EXTENT_SHARED flag to refcounted extents. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
This commit is contained in:
parent
8c0414cd52
commit
faf8b70f79
@ -786,6 +786,8 @@ int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
||||
fe_flags = 0;
|
||||
if (rec.e_flags & OCFS2_EXT_UNWRITTEN)
|
||||
fe_flags |= FIEMAP_EXTENT_UNWRITTEN;
|
||||
if (rec.e_flags & OCFS2_EXT_REFCOUNTED)
|
||||
fe_flags |= FIEMAP_EXTENT_SHARED;
|
||||
if (is_last)
|
||||
fe_flags |= FIEMAP_EXTENT_LAST;
|
||||
len_bytes = (u64)le16_to_cpu(rec.e_leaf_clusters) << osb->s_clustersize_bits;
|
||||
|
Loading…
Reference in New Issue
Block a user