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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user