projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade990f
)
f2fs: fix missing clear FI_NO_PREALLOC in some error case
author
Yunlei He
<heyunlei@huawei.com>
Tue, 24 Apr 2018 03:40:19 +0000
(11:40 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:48 +0000
(11:31 -0700)
This patch fix missing clear FI_NO_PREALLOC in some error case
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index ac6452261926ce0b73be09d6d0437441c742bec6..a68b2cc067bc412cd5837c40bcb3d456c2012f04 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-2925,6
+2925,8
@@
static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
iov_iter_count(from)) ||
f2fs_has_inline_data(inode) ||
f2fs_force_buffered_io(inode, WRITE)) {
+ clear_inode_flag(inode,
+ FI_NO_PREALLOC);
inode_unlock(inode);
return -EAGAIN;
}