Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44875
b: refs/heads/master
c: 92a3d03
h: refs/heads/master
i:
  44873: 7585d96
  44871: cacdee1
v: v3
  • Loading branch information
Badari Pulavarty authored and Linus Torvalds committed Dec 22, 2006
1 parent aee082c commit 09402ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba0084048ab785c2cb1d6cc2cccabe642a5b799a
refs/heads/master: 92a3d03aab912624cae799e5772a6eb2ef55083f
7 changes: 6 additions & 1 deletion trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,12 @@ static void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end)
size = SHMEM_NR_DIRECT;
nr_swaps_freed = shmem_free_swp(ptr+idx, ptr+size);
}
if (!topdir)

/*
* If there are no indirect blocks or we are punching a hole
* below indirect blocks, nothing to be done.
*/
if (!topdir || (punch_hole && (limit <= SHMEM_NR_DIRECT)))
goto done2;

BUG_ON(limit <= SHMEM_NR_DIRECT);
Expand Down

0 comments on commit 09402ff

Please sign in to comment.