summaryrefslogtreecommitdiffstats
path: root/fs/fat/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/file.c')
-rw-r--r--fs/fat/file.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c
index 0c535b8da..4481a6df9 100644
--- a/fs/fat/file.c
+++ b/fs/fat/file.c
@@ -30,7 +30,7 @@
#define PRINTK(x)
#define Printk(x) printk x
-static struct file_operations fat_file_operations = {
+struct file_operations fat_file_operations = {
read: fat_file_read,
write: fat_file_write,
mmap: generic_file_mmap,
@@ -38,19 +38,8 @@ static struct file_operations fat_file_operations = {
};
struct inode_operations fat_file_inode_operations = {
- &fat_file_operations, /* default file operations */
- NULL, /* create */
- NULL, /* lookup */
- NULL, /* link */
- NULL, /* unlink */
- NULL, /* symlink */
- NULL, /* mkdir */
- NULL, /* rmdir */
- NULL, /* mknod */
- NULL, /* rename */
- NULL, /* readlink */
- NULL, /* follow_link */
- fat_truncate, /* truncate */
+ truncate: fat_truncate,
+ setattr: fat_notify_change,
};
ssize_t fat_file_read(