patch-2.3.9 linux/fs/hpfs/ea.c
Next file: linux/fs/hpfs/file.c
Previous file: linux/fs/hpfs/anode.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Sun Jun 27 10:10:41 1999
- Orig file:
v2.3.8/linux/fs/hpfs/ea.c
- Orig date:
Tue Jun 1 23:25:47 1999
diff -u --recursive --new-file v2.3.8/linux/fs/hpfs/ea.c linux/fs/hpfs/ea.c
@@ -233,10 +233,10 @@
goto bail;
fnode->ea_anode = 0;
len++;
- }
- else if (!fnode->ea_anode)
- if (hpfs_alloc_if_possible(s, fnode->ea_secno + len)) len++;
- else {
+ } else if (!fnode->ea_anode) {
+ if (hpfs_alloc_if_possible(s, fnode->ea_secno + len)) {
+ len++;
+ } else {
/* Aargh... don't know how to create ea anodes :-( */
/*struct buffer_head *bh;
struct anode *anode;
@@ -280,10 +280,15 @@
fnode->ea_secno = new_sec;
len = (pos + 511) >> 9;
}
- if (fnode->ea_anode)
- if (hpfs_add_sector_to_btree(s, fnode->ea_secno, 0, len) != -1)
+ }
+ if (fnode->ea_anode) {
+ if (hpfs_add_sector_to_btree(s, fnode->ea_secno,
+ 0, len) != -1) {
len++;
- else goto bail;
+ } else {
+ goto bail;
+ }
+ }
}
h[0] = 0;
h[1] = strlen(key);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)