]> err.no Git - linux-2.6/commit
[PATCH] reiserfs: use generic_file_open for open() checks
authorJeff Mahoney <jeffm@suse.com>
Sun, 1 Oct 2006 06:28:44 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:28 +0000 (00:39 -0700)
commit5a2618e6a972f305496daa257a56a09dd3acca29
treee2b64f244f3e4c413be0734c54ba25de62ff0138
parent5065227b46235ec0131b383cc2f537069b55c6b6
[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>
fs/reiserfs/file.c