We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae2e280 commit 766c663Copy full SHA for 766c663
fs/f2fs/f2fs.h
@@ -3115,12 +3115,16 @@ static inline int is_file(struct inode *inode, int type)
3115
3116
static inline void set_file(struct inode *inode, int type)
3117
{
3118
+ if (is_file(inode, type))
3119
+ return;
3120
F2FS_I(inode)->i_advise |= type;
3121
f2fs_mark_inode_dirty_sync(inode, true);
3122
}
3123
3124
static inline void clear_file(struct inode *inode, int type)
3125
3126
+ if (!is_file(inode, type))
3127
3128
F2FS_I(inode)->i_advise &= ~type;
3129
3130
0 commit comments