summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/xattr.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-10-23 23:50:15 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-11-05 16:41:48 -0800
commitd8d1389ea1902560b84649b7ef572b117d09d338 (patch)
tree2f53b939b776a7323fbe8b420448f80534414099 /fs/f2fs/xattr.c
parent8f1572f7ce6169a4687cec1a89ce9c85cbf14eee (diff)
downloadlinux-stable-d8d1389ea1902560b84649b7ef572b117d09d338.tar.gz
linux-stable-d8d1389ea1902560b84649b7ef572b117d09d338.tar.bz2
linux-stable-d8d1389ea1902560b84649b7ef572b117d09d338.zip
f2fs: add missing quota_initialize
This patch adds to call quota_intialize in f2fs_set_acl, f2fs_unlink, and f2fs_rename. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/xattr.c')
-rw-r--r--fs/f2fs/xattr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 5a85627d4955..9fbcb7687d3b 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -678,6 +678,10 @@ int f2fs_setxattr(struct inode *inode, int index, const char *name,
struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
int err;
+ err = dquot_initialize(inode);
+ if (err)
+ return err;
+
/* this case is only from init_inode_metadata */
if (ipage)
return __f2fs_setxattr(inode, index, name, value,