aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 5fcef98f98e5..de05e86f1993 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3206,8 +3206,8 @@ int ext4_discard_partial_page_buffers_no_lock(handle_t *handle,
3206 * to be updated with the contents of the block before 3206 * to be updated with the contents of the block before
3207 * we write the zeros on top of it. 3207 * we write the zeros on top of it.
3208 */ 3208 */
3209 if (!(from & (blocksize - 1)) || 3209 if ((from & (blocksize - 1)) ||
3210 !((from + length) & (blocksize - 1))) { 3210 ((from + length) & (blocksize - 1))) {
3211 create_empty_buffers(page, blocksize, 0); 3211 create_empty_buffers(page, blocksize, 0);
3212 } else { 3212 } else {
3213 /* 3213 /*