Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2959
b: refs/heads/master
c: ef3daed
h: refs/heads/master
i:
  2957: 2c42c5e
  2955: a7084aa
  2951: eec2f51
  2943: 08c1478
v: v3
  • Loading branch information
Yoav Zach authored and Linus Torvalds committed Jun 23, 2005
1 parent 8085fe1 commit 89c8d00
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 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: 44e58a6a0bd604f46be9d808408a1cd880cc9b19
refs/heads/master: ef3daeda7b58f046f94b26637d500354038d39f4
7 changes: 4 additions & 3 deletions trunk/fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/vfs.h>
#include <asm/uaccess.h>
#include <linux/fs.h>
#include <linux/personality.h>
#include <linux/pagemap.h>
#include <linux/syscalls.h>

Expand Down Expand Up @@ -935,9 +936,9 @@ asmlinkage long sys_open(const char __user * filename, int flags, int mode)
char * tmp;
int fd, error;

#if BITS_PER_LONG != 32
flags |= O_LARGEFILE;
#endif
if (force_o_largefile())
flags |= O_LARGEFILE;

tmp = getname(filename);
fd = PTR_ERR(tmp);
if (!IS_ERR(tmp)) {
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-ia64/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ struct flock {

#define F_LINUX_SPECIFIC_BASE 1024

#define force_o_largefile() ( ! (current->personality & PER_LINUX32) )

#endif /* _ASM_IA64_FCNTL_H */
4 changes: 4 additions & 0 deletions trunk/include/linux/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#ifdef __KERNEL__

#ifndef force_o_largefile
#define force_o_largefile() (BITS_PER_LONG != 32)
#endif

#if BITS_PER_LONG == 32
#define IS_GETLK32(cmd) ((cmd) == F_GETLK)
#define IS_SETLK32(cmd) ((cmd) == F_SETLK)
Expand Down

0 comments on commit 89c8d00

Please sign in to comment.