diff options
author | Carsten Otte <cotte@de.ibm.com> | 2005-06-24 01:05:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:06:41 -0400 |
commit | 6d79125bba55ee82701f1c7d4ebbc1aa20ecbe4e (patch) | |
tree | fbd7f82fea19fd89e09312fe89919774b94a6efe /fs/ext2/file.c | |
parent | ceffc078528befc008c6f2c2c4decda79eabd534 (diff) |
[PATCH] xip: ext2: execute in place
These are the ext2 related parts. Ext2 now uses the xip_* file operations
along with the get_xip_page aop when mounted with -o xip.
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext2/file.c')
-rw-r--r-- | fs/ext2/file.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/ext2/file.c b/fs/ext2/file.c index f5e86141ec54..2b3d572365af 100644 --- a/fs/ext2/file.c +++ b/fs/ext2/file.c | |||
@@ -55,6 +55,24 @@ struct file_operations ext2_file_operations = { | |||
55 | .sendfile = generic_file_sendfile, | 55 | .sendfile = generic_file_sendfile, |
56 | }; | 56 | }; |
57 | 57 | ||
58 | #ifdef CONFIG_EXT2_FS_XIP | ||
59 | struct file_operations ext2_xip_file_operations = { | ||
60 | .llseek = generic_file_llseek, | ||
61 | .read = do_sync_read, | ||
62 | .write = do_sync_write, | ||
63 | .aio_read = xip_file_aio_read, | ||
64 | .aio_write = xip_file_aio_write, | ||
65 | .ioctl = ext2_ioctl, | ||
66 | .mmap = xip_file_mmap, | ||
67 | .open = generic_file_open, | ||
68 | .release = ext2_release_file, | ||
69 | .fsync = ext2_sync_file, | ||
70 | .readv = xip_file_readv, | ||
71 | .writev = xip_file_writev, | ||
72 | .sendfile = xip_file_sendfile, | ||
73 | }; | ||
74 | #endif | ||
75 | |||
58 | struct inode_operations ext2_file_inode_operations = { | 76 | struct inode_operations ext2_file_inode_operations = { |
59 | .truncate = ext2_truncate, | 77 | .truncate = ext2_truncate, |
60 | #ifdef CONFIG_EXT2_FS_XATTR | 78 | #ifdef CONFIG_EXT2_FS_XATTR |