From: Sunil Mushran <sunil.mushran@oracle.com>
To: akpm@linux-foundation.org
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
ocfs2-devel@oss.oracle.com
Subject: [PATCH 2/2] ocfs2: Use FIEMAP_EXTENT_SHARED
Date: Thu, 3 Dec 2009 12:46:52 -0800 [thread overview]
Message-ID: <1259873212-20107-3-git-send-email-sunil.mushran@oracle.com> (raw)
In-Reply-To: <1259873212-20107-1-git-send-email-sunil.mushran@oracle.com>
Adds FIEMAP_EXTENT_SHARED flag to refcounted extents.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Acked-by: Mark Fasheh <mfasheh@suse.com>
---
fs/ocfs2/extent_map.c | 2 ++
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;
--
1.5.6.5
next prev parent reply other threads:[~2009-12-03 20:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-03 20:46 Add FIEMAP_EXTENT_SHARED flag Sunil Mushran
2009-12-03 20:46 ` [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED Sunil Mushran
2009-12-03 20:46 ` Sunil Mushran [this message]
2009-12-18 5:10 ` [Ocfs2-devel] Add FIEMAP_EXTENT_SHARED flag Joel Becker
2009-12-18 21:24 ` Andreas Dilger
2009-12-18 21:30 ` Sunil Mushran
-- strict thread matches above, loose matches on Subject: below --
2009-11-06 23:24 Extend FIEMAP to indicate shared extents Sunil Mushran
2009-11-06 23:24 ` [PATCH 2/2] ocfs2: Use FIEMAP_EXTENT_SHARED Sunil Mushran
2009-10-22 1:05 Extend FIEMAP to indicate shared extents Sunil Mushran
2009-10-22 1:05 ` [PATCH 2/2] ocfs2: Use FIEMAP_EXTENT_SHARED Sunil Mushran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1259873212-20107-3-git-send-email-sunil.mushran@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).