diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-01-04 02:19:08 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-01-09 05:41:09 +0100 |
commit | 5d539245cb18afa8943cbf2be0cdc033e49f3a4a (patch) | |
tree | 78e1280043aa7d28140b4a5edbd40aa462e96b37 /fs/f2fs/file.c | |
parent | f2fs: check inject_rate validity during configuring (diff) | |
download | linux-5d539245cb18afa8943cbf2be0cdc033e49f3a4a.tar.xz linux-5d539245cb18afa8943cbf2be0cdc033e49f3a4a.zip |
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 '')
-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; |