aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/acl.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-10-23 23:48:49 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-11-05 16:41:43 -0800
commit1f227a3e215d3613ea6cbc2fbe29caafbcaa8f71 (patch)
tree30cf2c4cb3b9b33116511bc5d41be50081adbda7 /fs/f2fs/acl.c
parentf2fs: remove several redundant assignments (diff)
downloadlinux-dev-1f227a3e215d3613ea6cbc2fbe29caafbcaa8f71.tar.xz
linux-dev-1f227a3e215d3613ea6cbc2fbe29caafbcaa8f71.zip
f2fs: stop all the operations by cp_error flag
This patch replaces to use cp_error flag instead of RDONLY for quota off. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/acl.c')
-rw-r--r--fs/f2fs/acl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c
index 436b3a1464d9..2bb7c9fc5144 100644
--- a/fs/f2fs/acl.c
+++ b/fs/f2fs/acl.c
@@ -250,6 +250,9 @@ static int __f2fs_set_acl(struct inode *inode, int type,
int f2fs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
{
+ if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
+ return -EIO;
+
return __f2fs_set_acl(inode, type, acl, NULL);
}