[<prev] [next>] [day] [month] [year] [list]
Message-id: <005901d14a0e$eb9c9480$c2d5bd80$@samsung.com>
Date: Fri, 08 Jan 2016 20:19:27 +0800
From: Chao Yu <chao2.yu@...sung.com>
To: Jaegeuk Kim <jaegeuk@...nel.org>
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] f2fs: recognize encrypted data in f2fs_fiemap
This patch fixes to teach f2fs_fiemap to recognize encrypted data.
Signed-off-by: Chao Yu <chao2.yu@...sung.com>
---
fs/f2fs/data.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 3001f9c..5249de8 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -833,9 +833,13 @@ next:
flags |= FIEMAP_EXTENT_LAST;
}
- if (size)
+ if (size) {
+ if (f2fs_encrypted_inode(inode))
+ flags |= FIEMAP_EXTENT_DATA_ENCRYPTED;
+
ret = fiemap_fill_next_extent(fieinfo, logical,
phys, size, flags);
+ }
if (start_blk > last_blk || ret)
goto out;
--
2.6.3
Powered by blists - more mailing lists