projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd12ed1
)
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
Theodore Ts'o
<tytso@mit.edu>
Mon, 29 Jul 2013 16:12:56 +0000
(12:12 -0400)
We tested for ENOMEM instead of -ENOMEM. Oops.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/extents.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/extents.c
b/fs/ext4/extents.c
index a61873808f7659aafefa103f96f1f51f564ece04..72ba4705d4fa40e12edd1097f0815381688df7e6 100644
(file)
--- a/
fs/ext4/extents.c
+++ b/
fs/ext4/extents.c
@@
-4412,7
+4412,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;