Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25895
b: refs/heads/master
c: 0a489cb
h: refs/heads/master
i:
  25893: d1b1a02
  25891: c3d261c
  25887: cf2403c
v: v3
  • Loading branch information
Linus Torvalds committed Apr 18, 2006
1 parent 537618a commit 4df54c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: ac69e973ff0660e455f4ba1ddd4dcce4ae70ed1a
refs/heads/master: 0a489cb3b6a7b277030cdbc97c2c65905db94536
8 changes: 6 additions & 2 deletions trunk/fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)

asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length)
{
return do_sys_ftruncate(fd, length, 1);
long ret = do_sys_ftruncate(fd, length, 1);
prevent_tail_call(ret);
return ret;
}

/* LFS versions of truncate are only needed on 32 bit machines */
Expand All @@ -343,7 +345,9 @@ asmlinkage long sys_truncate64(const char __user * path, loff_t length)

asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length)
{
return do_sys_ftruncate(fd, length, 0);
long ret = do_sys_ftruncate(fd, length, 0);
prevent_tail_call(ret);
return ret;
}
#endif

Expand Down

0 comments on commit 4df54c9

Please sign in to comment.