mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
2c4db1a6f6
commit
da5af127a1
1 changed files with 5 additions and 1 deletions
|
@ -830,9 +830,13 @@ int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue