f2fs: return fake len for quota if cp is shutdown
Jaegeuk Kim
maintainerPATCH 1/1 f2fs: return fake len for quota if cp is shutdown
If cp is shutdown, let's just return success to unmount the partition.
Signed-off-by Jaegeuk Kim <[email protected]>
--- fs/f2fs/super.c | 4 ++++ 1 file changed, 4 insertions(+)
fs/f2fs/super.c +4 -0
@@ -1625,6 +1625,10 @@ static ssize_t f2fs_quota_write(struct super_block *sb, int type,int tocopy;while (towrite >0 ) { + +if (unlikely (f2fs_cp_error (F2FS_I_SB (inode)))) +return len; + tocopy = min_t(unsigned long, sb->s_blocksize - offset, towrite); retry:
Signature · 1 line
2.17.0.441.gb46fe60e1d-goog