aboutsummaryrefslogtreecommitdiffstats
path: root/fs/befs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-11-07 00:59:44 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 07:53:41 -0800
commit2cf06916217b5dcb2cc52a495e1f130cc8434ef5 (patch)
tree58e2392e82d0354e713fe17eff9d4edb62e98c9d /fs/befs
parent8c65b4a60450590e79a28e9717ceffa9e4debb3f (diff)
downloadkernel_samsung_smdk4412-2cf06916217b5dcb2cc52a495e1f130cc8434ef5.zip
kernel_samsung_smdk4412-2cf06916217b5dcb2cc52a495e1f130cc8434ef5.tar.gz
kernel_samsung_smdk4412-2cf06916217b5dcb2cc52a495e1f130cc8434ef5.tar.bz2
[PATCH] befs: use generic_ro_fops
No need to duplicate a generic readonly file ops table in befs. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/befs')
-rw-r--r--fs/befs/linuxvfs.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index e0a6025..e8112ad 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -73,12 +73,6 @@ static struct inode_operations befs_dir_inode_operations = {
.lookup = befs_lookup,
};
-static struct file_operations befs_file_operations = {
- .llseek = default_llseek,
- .read = generic_file_read,
- .mmap = generic_file_readonly_mmap,
-};
-
static struct address_space_operations befs_aops = {
.readpage = befs_readpage,
.sync_page = block_sync_page,
@@ -398,7 +392,7 @@ befs_read_inode(struct inode *inode)
inode->i_mapping->a_ops = &befs_aops;
if (S_ISREG(inode->i_mode)) {
- inode->i_fop = &befs_file_operations;
+ inode->i_fop = &generic_ro_fops;
} else if (S_ISDIR(inode->i_mode)) {
inode->i_op = &befs_dir_inode_operations;
inode->i_fop = &befs_dir_operations;