diff options
| author | Hou Pengyang <houpengyang@huawei.com> | 2017-04-25 12:45:12 +0000 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-05-21 18:43:05 +0200 |
| commit | 50ca0b2102b01e5c38ea734fbe4acf54e87eef2d (patch) | |
| tree | af9e7e40d0bdd435417b223a288c00327ab7946a /fs/f2fs/segment.h | |
| parent | 8d692f39be2d6c1fd98b1d9f96f6bd364c826d11 (diff) | |
f2fs: reconstruct code to write a data page
This patch introduces encrypt_one_page which encrypts one data page before
submit_bio, and change the use of need_inplace_update.
Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
| -rw-r--r-- | fs/f2fs/segment.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index f6499ae86..f488f0e2d 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -563,16 +563,12 @@ enum { F2FS_IPU_ASYNC, }; -static inline bool need_inplace_update(struct inode *inode, +static inline bool need_inplace_update_policy(struct inode *inode, struct f2fs_io_info *fio) { struct f2fs_sb_info *sbi = F2FS_I_SB(inode); unsigned int policy = SM_I(sbi)->ipu_policy; - /* IPU can be done only for the user data */ - if (S_ISDIR(inode->i_mode) || f2fs_is_atomic_file(inode)) - return false; - if (test_opt(sbi, LFS)) return false; |
