* [PATCH] use generic_file_open in udf
@ 2004-10-21 9:32 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-10-21 9:32 UTC (permalink / raw)
To: akpm, bfennema; +Cc: linux-fsdevel
let's try to reduce the number of hand-crafted LFS checks
--- 1.19/fs/udf/file.c 2004-06-04 06:03:33 +02:00
+++ edited/fs/udf/file.c 2004-10-14 13:42:41 +02:00
@@ -254,30 +254,10 @@
return 0;
}
-/*
- * udf_open_file
- *
- * PURPOSE
- * Called when an inode is about to be open.
- *
- * DESCRIPTION
- * Use this to disallow opening RW large files on 32 bit systems.
- * On 64 bit systems we force on O_LARGEFILE in sys_open.
- *
- * HISTORY
- *
- */
-static int udf_open_file(struct inode * inode, struct file * filp)
-{
- if ((inode->i_size & 0xFFFFFFFF80000000ULL) && !(filp->f_flags & O_LARGEFILE))
- return -EFBIG;
- return 0;
-}
-
struct file_operations udf_file_operations = {
.read = generic_file_read,
.ioctl = udf_ioctl,
- .open = udf_open_file,
+ .open = generic_file_open,
.mmap = generic_file_mmap,
.write = udf_file_write,
.release = udf_release_file,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-21 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-21 9:32 [PATCH] use generic_file_open in udf Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).