diff options
author | Jeff Mahoney <jeffm@suse.com> | 2006-10-01 02:28:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:28 -0400 |
commit | 5a2618e6a972f305496daa257a56a09dd3acca29 (patch) | |
tree | e2b64f244f3e4c413be0734c54ba25de62ff0138 /fs/reiserfs/file.c | |
parent | 5065227b46235ec0131b383cc2f537069b55c6b6 (diff) |
[PATCH] reiserfs: use generic_file_open for open() checks
The other common disk-based file systems (I checked ext[23], xfs, jfs)
check to ensure that opens of files > 2 GB fail unless O_LARGEFILE is
specified. They check via generic_file_open or their own open routine.
ReiserFS doesn't have an f_op->open defined, and as such, it's possible to
open files > 2 GB without O_LARGEFILE.
This patch adds the f_op->open member to conform with the expected
behavior.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/reiserfs/file.c')
-rw-r--r-- | fs/reiserfs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/reiserfs/file.c b/fs/reiserfs/file.c index 3e08f7161a3d..c11f6118c9ca 100644 --- a/fs/reiserfs/file.c +++ b/fs/reiserfs/file.c | |||
@@ -1573,6 +1573,7 @@ const struct file_operations reiserfs_file_operations = { | |||
1573 | .compat_ioctl = reiserfs_compat_ioctl, | 1573 | .compat_ioctl = reiserfs_compat_ioctl, |
1574 | #endif | 1574 | #endif |
1575 | .mmap = generic_file_mmap, | 1575 | .mmap = generic_file_mmap, |
1576 | .open = generic_file_open, | ||
1576 | .release = reiserfs_file_release, | 1577 | .release = reiserfs_file_release, |
1577 | .fsync = reiserfs_sync_file, | 1578 | .fsync = reiserfs_sync_file, |
1578 | .sendfile = generic_file_sendfile, | 1579 | .sendfile = generic_file_sendfile, |