Skip to contentSkip to conversation

cluster/gfs-kernel/src/gfs ops_file.c

Cluster-devel [email protected] 1 participant 1 message May 24, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: wcheng at sourceware.org 2007-05-24 22:34:54

Modified files:
gfs-kernel/src/gfs: ops_file.c

Log message:
Apparently we can't remove these two methods from file operations table. Since gfs_read() had been changed to use do_sync_read() that requires to have aio defined in the file operations table.

So vector read/write (implies NFSD) will be partially broken again after we put these two methods back.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/ops_file.c.diff?cvsroot=cluster&r1=1.32&r2=1.33

gfs-kernel/src/gfs/ops_file.c +2 -0
@@ -1750,6 +1750,8 @@
 	.llseek = gfs_llseek,
 	.read = gfs_read,
 	.write = gfs_write,
+        .aio_read = gfs_aio_read,
+        .aio_write = gfs_aio_write,
 	.ioctl = gfs_ioctl,
 	.mmap = gfs_mmap,
 	.open = gfs_open,