diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index d635c58cf5a3..acbec04a6771 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -781,6 +781,7 @@ int f2fs_add_dentry(struct inode *dir, const struct f2fs_filename *fname, * i_xattr_sem -> inode_page lock used by f2fs_setxattr. */ f2fs_down_read(&F2FS_I(dir)->i_xattr_sem); + barrier(); err = f2fs_add_inline_entry(dir, fname, inode, ino, mode); f2fs_up_read(&F2FS_I(dir)->i_xattr_sem); }