summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2009-12-03 12:46:52 -0800
committerJoel Becker <joel.becker@oracle.com>2009-12-17 20:55:59 -0800
commitfaf8b70f79edf56fedd531dfcd41f3e73c3e9696 (patch)
tree10ded8a52305670b13a1bcae53003452362ad9ad /fs
parent8c0414cd524e9f1c483ffb3ff1c2d860f5c567c8 (diff)
downloadop-kernel-dev-faf8b70f79edf56fedd531dfcd41f3e73c3e9696.zip
op-kernel-dev-faf8b70f79edf56fedd531dfcd41f3e73c3e9696.tar.gz
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/extent_map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c
index 843db64..cdce5f8 100644
--- a/fs/ocfs2/extent_map.c
+++ b/fs/ocfs2/extent_map.c
@@ -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;
OpenPOWER on IntegriCloud