aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2020-04-23 20:37:43 -0700
committerAlistair Delva <adelva@google.com>2020-05-04 16:55:04 +0000
commit0db9b0e1a581b25e5e748c56dc587b6292f89768 (patch)
tree7ce773887d6a3fdc5eb8425964c44cc6d522a0e0
parent2899f55cf23c82a6a854acc695fca8cba2965d31 (diff)
FROMGIT: f2fs: fix missing check for f2fs_unlock_opASB-2020-05-05_5.4-stable
This fixes what Chao pointed. Upstream patch should be fine. Fixes: 8c77bd62d6e4 ("f2fs: fix quota_sync failure due to f2fs_lock_op") Change-Id: Ia697c8cf3897895392bbc0364d7d76f16ec9049e Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
-rw-r--r--fs/f2fs/compress.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index f839caf7ebf1..83814740819b 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -1093,7 +1093,8 @@ unlock_continue:
set_inode_flag(inode, FI_FIRST_BLOCK_WRITTEN);
f2fs_put_dnode(&dn);
- f2fs_unlock_op(sbi);
+ if (!IS_NOQUOTA(inode))
+ f2fs_unlock_op(sbi);
spin_lock(&fi->i_size_lock);
if (fi->last_disk_size < psize)
@@ -1119,7 +1120,8 @@ out_put_cic:
out_put_dnode:
f2fs_put_dnode(&dn);
out_unlock_op:
- f2fs_unlock_op(sbi);
+ if (!IS_NOQUOTA(inode))
+ f2fs_unlock_op(sbi);
return -EAGAIN;
}