patch-2.1.81 linux/fs/fat/cache.c
Next file: linux/fs/fat/dir.c
Previous file: linux/fs/fat/buffer.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Jan 21 17:46:56 1998
- Orig file:
v2.1.80/linux/fs/fat/cache.c
- Orig date:
Tue Jan 13 20:07:28 1998
diff -u --recursive --new-file v2.1.80/linux/fs/fat/cache.c linux/fs/fat/cache.c
@@ -30,9 +30,9 @@
unsigned char *p_first,*p_last;
int copy,first,last,next,b;
- if(MSDOS_SB(sb)->cvf_format)
- if(MSDOS_SB(sb)->cvf_format->fat_access)
- return MSDOS_SB(sb)->cvf_format->fat_access(sb,nr,new_value);
+ if (MSDOS_SB(sb)->cvf_format &&
+ MSDOS_SB(sb)->cvf_format->fat_access)
+ return MSDOS_SB(sb)->cvf_format->fat_access(sb,nr,new_value);
if ((unsigned) (nr-2) >= MSDOS_SB(sb)->clusters)
return 0;
@@ -267,9 +267,8 @@
int cluster,offset;
sb = MSDOS_SB(inode->i_sb);
- if(sb->cvf_format)
- if(sb->cvf_format->cvf_smap)
- return sb->cvf_format->cvf_smap(inode,sector);
+ if (sb->cvf_format && sb->cvf_format->cvf_smap)
+ return sb->cvf_format->cvf_smap(inode,sector);
if ((sb->fat_bits != 32) &&
(inode->i_ino == MSDOS_ROOT_INO || (S_ISDIR(inode->i_mode) &&
!MSDOS_I(inode)->i_start))) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov