|
@@ -2227,7 +2227,7 @@ static long shmem_fallocate(struct file *file, int mode, loff_t offset,
|
|
/* Remove the !PageUptodate pages we added */
|
|
/* Remove the !PageUptodate pages we added */
|
|
shmem_undo_range(inode,
|
|
shmem_undo_range(inode,
|
|
(loff_t)start << PAGE_SHIFT,
|
|
(loff_t)start << PAGE_SHIFT,
|
|
- (loff_t)index << PAGE_SHIFT, true);
|
|
|
|
|
|
+ ((loff_t)index << PAGE_SHIFT) - 1, true);
|
|
goto undone;
|
|
goto undone;
|
|
}
|
|
}
|
|
|
|
|