diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-01-03 17:19:08 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-01-08 20:41:09 -0800 |
commit | 5d539245cb18afa8943cbf2be0cdc033e49f3a4a (patch) | |
tree | 78e1280043aa7d28140b4a5edbd40aa462e96b37 /fs/f2fs/file.c | |
parent | 36c5733f9570e9052a6437012be8034085f25ab7 (diff) | |
download | linux-5d539245cb18afa8943cbf2be0cdc033e49f3a4a.tar.bz2 |
f2fs: export FS_NOCOW_FL flag to user
This exports pin_file status to user.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index ae2b45e75847..0d461321edfc 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1651,6 +1651,8 @@ static int f2fs_ioc_getflags(struct file *filp, unsigned long arg) flags |= F2FS_ENCRYPT_FL; if (f2fs_has_inline_data(inode) || f2fs_has_inline_dentry(inode)) flags |= F2FS_INLINE_DATA_FL; + if (is_inode_flag_set(inode, FI_PIN_FILE)) + flags |= F2FS_NOCOW_FL; flags &= F2FS_FL_USER_VISIBLE; |