patch-2.4.9 linux/fs/fat/file.c
Next file: linux/fs/fat/inode.c
Previous file: linux/fs/fat/dir.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sun Aug 12 10:56:56 2001
- Orig file:
v2.4.8/linux/fs/fat/file.c
- Orig date:
Thu May 24 15:36:33 2001
diff -u --recursive --new-file v2.4.8/linux/fs/fat/file.c linux/fs/fat/file.c
@@ -6,8 +6,6 @@
* regular file handling primitives for fat-based filesystems
*/
-#define ASC_LINUX_VERSION(V, P, S) (((V) * 65536) + ((P) * 256) + (S))
-#include <linux/version.h>
#include <linux/sched.h>
#include <linux/locks.h>
#include <linux/fs.h>
@@ -22,15 +20,11 @@
#include <asm/uaccess.h>
#include <asm/system.h>
-#include "msbuffer.h"
-
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#define MAX(a,b) (((a) > (b)) ? (a) : (b))
-
#define PRINTK(x)
#define Printk(x) printk x
struct file_operations fat_file_operations = {
+ llseek: generic_file_llseek,
read: fat_file_read,
write: fat_file_write,
mmap: generic_file_mmap,
@@ -73,7 +67,7 @@
return -EIO;
}
if (!(iblock % MSDOS_SB(inode->i_sb)->cluster_size)) {
- if (fat_add_cluster(inode))
+ if (fat_add_cluster(inode) < 0)
return -ENOSPC;
}
MSDOS_I(inode)->mmu_private += sb->s_blocksize;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)