projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc953e8
)
ext4: fix retry handling in ext4_ext_truncate()
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 29 Jul 2013 16:12:56 +0000
(12:12 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 15 Aug 2013 05:59:05 +0000
(22:59 -0700)
commit
94eec0fc3520c759831763d866421b4d60b599b4
upstream.
We tested for ENOMEM instead of -ENOMEM. Oops.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c
patch
|
blob
|
history
diff --git
a/fs/ext4/extents.c
b/fs/ext4/extents.c
index fddf3d957004672afadf369698cb51aab985a2d7..dc1e030472269ed93f9d7bc153cf3a990b3cf1ba 100644
(file)
--- a/
fs/ext4/extents.c
+++ b/
fs/ext4/extents.c
@@
-4389,7
+4389,7
@@
void ext4_ext_truncate(handle_t *handle, struct inode *inode)
retry:
err = ext4_es_remove_extent(inode, last_block,
EXT_MAX_BLOCKS - last_block);
- if (err == ENOMEM) {
+ if (err ==
-
ENOMEM) {
cond_resched();
congestion_wait(BLK_RW_ASYNC, HZ/50);
goto retry;