projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
955ebcd
)
f2fs: fix to detect cp error in f2fs_setxattr()
author
Chao Yu
<yuchao0@huawei.com>
Mon, 22 Jul 2019 09:57:06 +0000
(17:57 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 23 Aug 2019 14:57:11 +0000
(07:57 -0700)
It needs to return -EIO if filesystem has been shutdown, fix the
miss case in f2fs_setxattr().
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/xattr.c
b/fs/f2fs/xattr.c
index 3c92f4122044f0ee9111c21203f7c14f4b21a8d7..f85c810e33cadaaee4ed7377fde9792847f73f48 100644
(file)
--- a/
fs/f2fs/xattr.c
+++ b/
fs/f2fs/xattr.c
@@
-730,6
+730,8
@@
int f2fs_setxattr(struct inode *inode, int index, const char *name,
struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
int err;
+ if (unlikely(f2fs_cp_error(sbi)))
+ return -EIO;
err = f2fs_is_checkpoint_ready(sbi);
if (err)
return err;