aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/f2fs/f2fs.h2
-rw-r--r--fs/f2fs/namei.c2
-rw-r--r--fs/f2fs/super.c5
3 files changed, 5 insertions, 4 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 7f9cb0bba104..c25c67868b98 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -3422,7 +3422,7 @@ static inline void f2fs_set_encrypted_inode(struct inode *inode)
3422{ 3422{
3423#ifdef CONFIG_F2FS_FS_ENCRYPTION 3423#ifdef CONFIG_F2FS_FS_ENCRYPTION
3424 file_set_encrypt(inode); 3424 file_set_encrypt(inode);
3425 inode->i_flags |= S_ENCRYPTED; 3425 f2fs_set_inode_flags(inode);
3426#endif 3426#endif
3427} 3427}
3428 3428
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index a54577e417b1..54295b5c1822 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -122,6 +122,8 @@ static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode)
122 if (F2FS_I(inode)->i_flags & F2FS_PROJINHERIT_FL) 122 if (F2FS_I(inode)->i_flags & F2FS_PROJINHERIT_FL)
123 set_inode_flag(inode, FI_PROJ_INHERIT); 123 set_inode_flag(inode, FI_PROJ_INHERIT);
124 124
125 f2fs_set_inode_flags(inode);
126
125 trace_f2fs_new_inode(inode, 0); 127 trace_f2fs_new_inode(inode, 0);
126 return inode; 128 return inode;
127 129
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 262a27744eb1..bb88ae62ae6f 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1939,8 +1939,7 @@ static int f2fs_quota_on(struct super_block *sb, int type, int format_id,
1939 1939
1940 inode_lock(inode); 1940 inode_lock(inode);
1941 F2FS_I(inode)->i_flags |= F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL; 1941 F2FS_I(inode)->i_flags |= F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL;
1942 inode_set_flags(inode, S_NOATIME | S_IMMUTABLE, 1942 f2fs_set_inode_flags(inode);
1943 S_NOATIME | S_IMMUTABLE);
1944 inode_unlock(inode); 1943 inode_unlock(inode);
1945 f2fs_mark_inode_dirty_sync(inode, false); 1944 f2fs_mark_inode_dirty_sync(inode, false);
1946 1945
@@ -1965,7 +1964,7 @@ static int f2fs_quota_off(struct super_block *sb, int type)
1965 1964
1966 inode_lock(inode); 1965 inode_lock(inode);
1967 F2FS_I(inode)->i_flags &= ~(F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL); 1966 F2FS_I(inode)->i_flags &= ~(F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL);
1968 inode_set_flags(inode, 0, S_NOATIME | S_IMMUTABLE); 1967 f2fs_set_inode_flags(inode);
1969 inode_unlock(inode); 1968 inode_unlock(inode);
1970 f2fs_mark_inode_dirty_sync(inode, false); 1969 f2fs_mark_inode_dirty_sync(inode, false);
1971out_put: 1970out_put: