diff options
Diffstat (limited to 'mm/memory.c')
| -rw-r--r-- | mm/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c index 0a2010a9518c..7b9db658aca2 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
| @@ -2266,7 +2266,7 @@ int vmtruncate(struct inode * inode, loff_t offset) | |||
| 2266 | unmap_mapping_range(mapping, offset + PAGE_SIZE - 1, 0, 1); | 2266 | unmap_mapping_range(mapping, offset + PAGE_SIZE - 1, 0, 1); |
| 2267 | } | 2267 | } |
| 2268 | 2268 | ||
| 2269 | if (inode->i_op && inode->i_op->truncate) | 2269 | if (inode->i_op->truncate) |
| 2270 | inode->i_op->truncate(inode); | 2270 | inode->i_op->truncate(inode); |
| 2271 | return 0; | 2271 | return 0; |
| 2272 | 2272 | ||
| @@ -2286,7 +2286,7 @@ int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end) | |||
| 2286 | * a way to truncate a range of blocks (punch a hole) - | 2286 | * a way to truncate a range of blocks (punch a hole) - |
| 2287 | * we should return failure right now. | 2287 | * we should return failure right now. |
| 2288 | */ | 2288 | */ |
| 2289 | if (!inode->i_op || !inode->i_op->truncate_range) | 2289 | if (!inode->i_op->truncate_range) |
| 2290 | return -ENOSYS; | 2290 | return -ENOSYS; |
| 2291 | 2291 | ||
| 2292 | mutex_lock(&inode->i_mutex); | 2292 | mutex_lock(&inode->i_mutex); |
