patch-2.3.48 linux/fs/sysv/file.c

Next file: linux/fs/sysv/ialloc.c
Previous file: linux/fs/sysv/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/sysv/file.c linux/fs/sysv/file.c
@@ -13,21 +13,14 @@
  *  SystemV/Coherent regular file handling primitives
  */
 
-#include <linux/kernel.h>
 #include <linux/fs.h>
 #include <linux/sysv_fs.h>
-#include <linux/errno.h>
-#include <linux/fcntl.h>
-#include <linux/stat.h>
-#include <linux/string.h>
-#include <linux/locks.h>
-#include <linux/pagemap.h>
 
 /*
  * We have mostly NULLs here: the current defaults are OK for
  * the coh filesystem.
  */
-static struct file_operations sysv_file_operations = {
+struct file_operations sysv_file_operations = {
 	read:		generic_file_read,
 	write:		generic_file_write,
 	mmap:		generic_file_mmap,
@@ -35,6 +28,6 @@
 };
 
 struct inode_operations sysv_file_inode_operations = {
-	&sysv_file_operations,
 	truncate:	sysv_truncate,
+	setattr:	sysv_notify_change,
 };

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)