Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
606a2728
Commit
606a2728
authored
17 years ago
by
Linus Torvalds
Browse files
Options
Download
Email Patches
Plain Diff
Import 2.3.9pre3
parent
e61b17ab
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
25 additions
and
268 deletions
+25
-268
Documentation/Configure.help
Documentation/Configure.help
+0
-38
arch/alpha/config.in
arch/alpha/config.in
+0
-3
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/osf_sys.c
+2
-0
arch/arm/kernel/sys_arm.c
arch/arm/kernel/sys_arm.c
+2
-0
arch/i386/config.in
arch/i386/config.in
+0
-3
arch/mips/config.in
arch/mips/config.in
+0
-4
arch/mips/kernel/syscall.c
arch/mips/kernel/syscall.c
+2
-0
arch/mips/kernel/sysirix.c
arch/mips/kernel/sysirix.c
+2
-0
arch/ppc/config.in
arch/ppc/config.in
+0
-1
arch/ppc/defconfig
arch/ppc/defconfig
+0
-1
arch/ppc/kernel/syscalls.c
arch/ppc/kernel/syscalls.c
+5
-1
arch/sparc/config.in
arch/sparc/config.in
+0
-3
arch/sparc/defconfig
arch/sparc/defconfig
+0
-1
arch/sparc64/config.in
arch/sparc64/config.in
+1
-4
arch/sparc64/defconfig
arch/sparc64/defconfig
+0
-1
arch/sparc64/solaris/misc.c
arch/sparc64/solaris/misc.c
+2
-0
fs/Makefile
fs/Makefile
+0
-8
fs/binfmt_aout.c
fs/binfmt_aout.c
+4
-1
fs/binfmt_java.c
fs/binfmt_java.c
+0
-196
fs/buffer.c
fs/buffer.c
+5
-3
No files found.
Documentation/Configure.help
View file @
606a2728
...
...
@@ -1705,44 +1705,6 @@ CONFIG_BINFMT_AOUT
because some crucial programs on your system might still be in A.OUT
format.
Kernel support for JAVA binaries (obsolete)
CONFIG_BINFMT_JAVA
JAVA(tm) is an object oriented programming language developed by
SUN; JAVA programs are compiled into "JAVA bytecode" binaries which
can then be interpreted by run time systems on many different
architectures and operating systems. These JAVA binaries are
becoming a universal executable format.
If you want to execute JAVA binaries, read the Java on Linux HOWTO,
available via FTP (user: anonymous) at
ftp://metalab.unc.edu/pub/Linux/docs/HOWTO. You will then need to
install the run time system contained in the Java Developers Kit
(JDK) as described in the HOWTO. This is completely independent of
the Linux kernel and you do NOT need to say Y here for this to work.
Saying Y here allows you to execute a JAVA bytecode binary just like
any other Linux program: by simply typing in its name. (You also
need to have the JDK installed for this to work). As more and more
Java programs become available, the use for this will gradually
increase. You can even execute HTML files containing JAVA applets
(little embedded JAVA binaries) if those files start with the string
"<!--applet-->". If you want to use this, say Y here and read
Documentation/java.txt.
If you disable this option it will reduce your kernel by about 4 KB.
This is not much and by itself does not warrant removing support.
However its removal is a good idea if you do not have the JDK
installed. You may answer M for module support and later load the
module when you install the JDK or find an interesting Java program
that you can't live without. The module will be called
binfmt_java.o.
The complete functionality of this Java support is also provided by
the more general option "Kernel support for MISC binaries",
below. This option is therefore considered obsolete and you should
say N here and Y to "Kernel support for MISC binaries" if you're
interested in transparently executing Java programs.
Kernel support for Linux/Intel ELF binaries
CONFIG_BINFMT_EM86
Say Y here if you want to be able to execute Linux/Intel ELF
...
...
This diff is collapsed.
Click to expand it.
arch/alpha/config.in
View file @
606a2728
...
...
@@ -187,9 +187,6 @@ bool 'Sysctl support' CONFIG_SYSCTL
tristate 'Kernel support for a.out (ECOFF) binaries' CONFIG_BINFMT_AOUT
tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
tristate 'Kernel support for JAVA binaries (obsolete)' CONFIG_BINFMT_JAVA
fi
tristate 'Kernel support for Linux/Intel ELF binaries' CONFIG_BINFMT_EM86
tristate 'Parallel port support' CONFIG_PARPORT
if [ "$CONFIG_PARPORT" != "n" ]; then
...
...
This diff is collapsed.
Click to expand it.
arch/alpha/kernel/osf_sys.c
View file @
606a2728
...
...
@@ -255,6 +255,7 @@ asmlinkage unsigned long osf_mmap(unsigned long addr, unsigned long len,
struct
file
*
file
=
NULL
;
unsigned
long
ret
=
-
EBADF
;
down
(
&
current
->
mm
->
mmap_sem
);
lock_kernel
();
#if 0
if (flags & (_MAP_HASSEMAPHORE | _MAP_INHERIT | _MAP_UNALIGNED))
...
...
@@ -272,6 +273,7 @@ asmlinkage unsigned long osf_mmap(unsigned long addr, unsigned long len,
fput
(
file
);
out:
unlock_kernel
();
up
(
&
current
->
mm
->
mmap_sem
);
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
arch/arm/kernel/sys_arm.c
View file @
606a2728
...
...
@@ -72,6 +72,7 @@ asmlinkage int old_mmap(struct mmap_arg_struct *arg)
struct
file
*
file
=
NULL
;
struct
mmap_arg_struct
a
;
down
(
&
current
->
mm
->
mmap_sem
);
lock_kernel
();
if
(
copy_from_user
(
&
a
,
arg
,
sizeof
(
a
)))
goto
out
;
...
...
@@ -87,6 +88,7 @@ asmlinkage int old_mmap(struct mmap_arg_struct *arg)
fput
(
file
);
out:
unlock_kernel
();
up
(
&
current
->
mm
->
mmap_sem
);
return
error
;
}
...
...
This diff is collapsed.
Click to expand it.
arch/i386/config.in
View file @
606a2728
...
...
@@ -91,9 +91,6 @@ bool 'Sysctl support' CONFIG_SYSCTL
tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
tristate 'Kernel support for JAVA binaries (obsolete)' CONFIG_BINFMT_JAVA
fi
tristate 'Parallel port support' CONFIG_PARPORT
if [ "$CONFIG_PARPORT" != "n" ]; then
...
...
This diff is collapsed.
Click to expand it.
arch/mips/config.in
View file @
606a2728
...
...
@@ -76,10 +76,6 @@ fi
define_bool CONFIG_BINFMT_AOUT n
define_bool CONFIG_BINFMT_ELF y
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
tristate 'Kernel support for JAVA binaries (obsolete)' CONFIG_BINFMT_JAVA
fi
bool 'Networking support' CONFIG_NET
bool 'System V IPC' CONFIG_SYSVIPC
...
...
This diff is collapsed.
Click to expand it.
arch/mips/kernel/syscall.c
View file @
606a2728
...
...
@@ -61,6 +61,7 @@ asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len, int prot,
struct
file
*
file
=
NULL
;
unsigned
long
error
=
-
EFAULT
;
down
(
&
current
->
mm
->
mmap_sem
);
lock_kernel
();
if
(
!
(
flags
&
MAP_ANONYMOUS
))
{
error
=
-
EBADF
;
...
...
@@ -74,6 +75,7 @@ asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len, int prot,
fput
(
file
);
out:
unlock_kernel
();
up
(
&
current
->
mm
->
mmap_sem
);
return
error
;
}
...
...
This diff is collapsed.
Click to expand it.
arch/mips/kernel/sysirix.c
View file @
606a2728
...
...
@@ -1103,6 +1103,7 @@ asmlinkage unsigned long irix_mmap32(unsigned long addr, size_t len, int prot,
struct
file
*
file
=
NULL
;
unsigned
long
retval
;
down
(
&
current
->
mm
->
mmap_sem
);
lock_kernel
();
if
(
!
(
flags
&
MAP_ANONYMOUS
))
{
if
(
!
(
file
=
fget
(
fd
)))
{
...
...
@@ -1130,6 +1131,7 @@ asmlinkage unsigned long irix_mmap32(unsigned long addr, size_t len, int prot,
out:
unlock_kernel
();
up
(
&
current
->
mm
->
mmap_sem
);
return
retval
;
}
...
...
This diff is collapsed.
Click to expand it.
arch/ppc/config.in
View file @
606a2728
...
...
@@ -65,7 +65,6 @@ bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
define_bool CONFIG_BINFMT_ELF y
define_bool CONFIG_KERNEL_ELF y
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
tristate 'Kernel support for JAVA binaries (obsolete)' CONFIG_BINFMT_JAVA
tristate 'Parallel port support' CONFIG_PARPORT
if [ "$CONFIG_PARPORT" != "n" ]; then
...
...
This diff is collapsed.
Click to expand it.
arch/ppc/defconfig
View file @
606a2728
...
...
@@ -35,7 +35,6 @@ CONFIG_SYSVIPC=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
# CONFIG_BINFMT_MISC is not set
# CONFIG_BINFMT_JAVA is not set
# CONFIG_PARPORT is not set
CONFIG_VGA_CONSOLE=y
CONFIG_FB=y
...
...
This diff is collapsed.
Click to expand it.
arch/ppc/kernel/syscalls.c
View file @
606a2728
...
...
@@ -201,12 +201,16 @@ asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
lock_kernel
();
if
(
!
(
flags
&
MAP_ANONYMOUS
))
{
if
(
fd
>=
NR_OPEN
||
!
(
file
=
current
->
files
->
fd
[
fd
]
))
if
(
!
(
file
=
fget
(
fd
)
))
goto
out
;
}
flags
&=
~
(
MAP_EXECUTABLE
|
MAP_DENYWRITE
);
down
(
&
current
->
mm
->
mmap_sem
);
ret
=
do_mmap
(
file
,
addr
,
len
,
prot
,
flags
,
offset
);
up
(
&
current
->
mm
->
mmap_sem
);
if
(
file
)
fput
(
file
);
out:
unlock_kernel
();
return
ret
;
...
...
This diff is collapsed.
Click to expand it.
arch/sparc/config.in
View file @
606a2728
...
...
@@ -72,9 +72,6 @@ bool 'Sysctl support' CONFIG_SYSCTL
tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
tristate 'Kernel support for JAVA binaries (obsolete)' CONFIG_BINFMT_JAVA
fi
endmenu
mainmenu_option next_comment
...
...
This diff is collapsed.
Click to expand it.
arch/sparc/defconfig
View file @
606a2728
...
...
@@ -80,7 +80,6 @@ CONFIG_SYSCTL=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_BINFMT_JAVA=m
#
# Floppy, IDE, and other block devices
...
...
This diff is collapsed.
Click to expand it.
arch/sparc64/config.in
View file @
606a2728
...
...
@@ -62,10 +62,7 @@ if [ "$CONFIG_SPARC32_COMPAT" != "n" ]; then
tristate 'Kernel support for 32-bit ELF binaries' CONFIG_BINFMT_ELF32
bool 'Kernel support for 32-bit (ie. SunOS) a.out binaries' CONFIG_BINFMT_AOUT32
fi
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
tristate 'Kernel support for JAVA binaries (obsolete)' CONFIG_BINFMT_JAVA
fi
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
tristate 'Solaris binary emulation' CONFIG_SOLARIS_EMUL
fi
...
...
This diff is collapsed.
Click to expand it.
arch/sparc64/defconfig
View file @
606a2728
...
...
@@ -91,7 +91,6 @@ CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_ELF32=y
# CONFIG_BINFMT_AOUT32 is not set
CONFIG_BINFMT_MISC=m
CONFIG_BINFMT_JAVA=m
CONFIG_SOLARIS_EMUL=m
CONFIG_PARPORT=m
CONFIG_PARPORT_AX=m
...
...
This diff is collapsed.
Click to expand it.
arch/sparc64/solaris/misc.c
View file @
606a2728
...
...
@@ -83,6 +83,7 @@ static u32 do_solaris_mmap(u32 addr, u32 len, u32 prot, u32 flags, u32 fd, u64 o
}
}
down
(
&
current
->
mm
->
mmap_sem
);
retval
=
-
ENOMEM
;
if
(
!
(
flags
&
MAP_FIXED
)
&&
!
addr
)
{
unsigned
long
attempt
=
get_unmapped_area
(
addr
,
len
);
...
...
@@ -102,6 +103,7 @@ static u32 do_solaris_mmap(u32 addr, u32 len, u32 prot, u32 flags, u32 fd, u64 o
if
(
!
ret_type
)
retval
=
((
retval
<
0xf0000000
)
?
0
:
retval
);
out_putf:
up
(
&
current
->
mm
->
mmap_sem
);
if
(
file
)
fput
(
file
);
out:
...
...
This diff is collapsed.
Click to expand it.
fs/Makefile
View file @
606a2728
...
...
@@ -263,14 +263,6 @@ else
endif
endif
ifeq
($(CONFIG_BINFMT_JAVA),y)
BINFMTS
+=
binfmt_java.o
else
ifeq
($(CONFIG_BINFMT_JAVA),m)
M_OBJS
+=
binfmt_java.o
endif
endif
ifeq
($(CONFIG_BINFMT_EM86),y)
BINFMTS
+=
binfmt_em86.o
else
...
...
This diff is collapsed.
Click to expand it.
fs/binfmt_aout.c
View file @
606a2728
...
...
@@ -396,7 +396,7 @@ static inline int do_load_aout_binary(struct linux_binprm * bprm, struct pt_regs
fd
=
open_dentry
(
bprm
->
dentry
,
O_RDONLY
);
if
(
fd
<
0
)
return
fd
;
file
=
f
check
(
fd
);
file
=
f
get
(
fd
);
if
((
fd_offset
&
~
PAGE_MASK
)
!=
0
)
{
printk
(
KERN_WARNING
...
...
@@ -406,6 +406,7 @@ static inline int do_load_aout_binary(struct linux_binprm * bprm, struct pt_regs
}
if
(
!
file
->
f_op
||
!
file
->
f_op
->
mmap
||
((
fd_offset
&
~
PAGE_MASK
)
!=
0
))
{
fput
(
file
);
sys_close
(
fd
);
do_brk
(
0
,
ex
.
a_text
+
ex
.
a_data
);
read_exec
(
bprm
->
dentry
,
fd_offset
,
...
...
@@ -422,6 +423,7 @@ static inline int do_load_aout_binary(struct linux_binprm * bprm, struct pt_regs
fd_offset
);
if
(
error
!=
N_TXTADDR
(
ex
))
{
fput
(
file
);
sys_close
(
fd
);
send_sig
(
SIGKILL
,
current
,
0
);
return
error
;
...
...
@@ -431,6 +433,7 @@ static inline int do_load_aout_binary(struct linux_binprm * bprm, struct pt_regs
PROT_READ
|
PROT_WRITE
|
PROT_EXEC
,
MAP_FIXED
|
MAP_PRIVATE
|
MAP_DENYWRITE
|
MAP_EXECUTABLE
,
fd_offset
+
ex
.
a_text
);
fput
(
file
);
sys_close
(
fd
);
if
(
error
!=
N_DATADDR
(
ex
))
{
send_sig
(
SIGKILL
,
current
,
0
);
...
...
This diff is collapsed.
Click to expand it.
fs/binfmt_java.c
deleted
100644 → 0
View file @
e61b17ab
/*
* linux/fs/binfmt_java.c
*
* Copyright (C) 1996 Brian A. Lantz
* derived from binfmt_script.c
*
* Simplified and modified to support binary java interpreters
* by Tom May <ftom@netcom.com>.
*/
#include <linux/module.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <linux/malloc.h>
#include <linux/binfmts.h>
#include <linux/init.h>
#define _PATH_JAVA "/usr/bin/java"
#define _PATH_APPLET "/usr/bin/appletviewer"
/* These paths can be modified with sysctl(). */
char
binfmt_java_interpreter
[
65
]
=
_PATH_JAVA
;
char
binfmt_java_appletviewer
[
65
]
=
_PATH_APPLET
;
static
int
do_load_java
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
{
char
*
i_name
;
int
len
;
int
retval
;
struct
dentry
*
dentry
;
unsigned
char
*
ucp
=
(
unsigned
char
*
)
bprm
->
buf
;
if
((
ucp
[
0
]
!=
0xca
)
||
(
ucp
[
1
]
!=
0xfe
)
||
(
ucp
[
2
]
!=
0xba
)
||
(
ucp
[
3
]
!=
0xbe
))
return
-
ENOEXEC
;
/*
* Fail if we're called recursively, e.g., the Java interpreter
* is a java binary.
*/
if
(
bprm
->
java
)
return
-
ENOEXEC
;
bprm
->
java
=
1
;
dput
(
bprm
->
dentry
);
bprm
->
dentry
=
NULL
;
/*
* Set args: [0] the name of the java interpreter
* [1] name of java class to execute, which is the
* filename without the path and without trailing
* ".class". Note that the interpreter will use
* its own way to found the class file (typically using
* environment variable CLASSPATH), and may in fact
* execute a different file from the one we want.
*
* This is done in reverse order, because of how the
* user environment and arguments are stored.
*/
remove_arg_zero
(
bprm
);
len
=
strlen
(
bprm
->
filename
);
if
(
len
>=
6
&&
!
strcmp
(
bprm
->
filename
+
len
-
6
,
".class"
))
bprm
->
filename
[
len
-
6
]
=
0
;
if
((
i_name
=
strrchr
(
bprm
->
filename
,
'/'
))
!=
NULL
)
i_name
++
;
else
i_name
=
bprm
->
filename
;
retval
=
copy_strings_kernel
(
1
,
&
i_name
,
bprm
);
if
(
retval
<
0
)
return
retval
;
bprm
->
argc
++
;
i_name
=
binfmt_java_interpreter
;
retval
=
copy_strings_kernel
(
1
,
&
i_name
,
bprm
);
if
(
retval
<
0
)
return
retval
;
bprm
->
argc
++
;
/*
* OK, now restart the process with the interpreter's dentry.
*/
bprm
->
filename
=
binfmt_java_interpreter
;
dentry
=
open_namei
(
binfmt_java_interpreter
,
0
,
0
);
retval
=
PTR_ERR
(
dentry
);
if
(
IS_ERR
(
dentry
))
return
retval
;
bprm
->
dentry
=
dentry
;
retval
=
prepare_binprm
(
bprm
);
if
(
retval
<
0
)
return
retval
;
return
search_binary_handler
(
bprm
,
regs
);
}
static
int
do_load_applet
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
{
char
*
i_name
;
struct
dentry
*
dentry
;
int
retval
;
if
(
strncmp
(
bprm
->
buf
,
"<!--applet"
,
10
))
return
-
ENOEXEC
;
dput
(
bprm
->
dentry
);
bprm
->
dentry
=
NULL
;
/*
* Set args: [0] the name of the appletviewer
* [1] filename of html file
*
* This is done in reverse order, because of how the
* user environment and arguments are stored.
*/
remove_arg_zero
(
bprm
);
i_name
=
bprm
->
filename
;
retval
=
copy_strings_kernel
(
1
,
&
i_name
,
bprm
);
if
(
retval
<
0
)
return
retval
;
bprm
->
argc
++
;
i_name
=
binfmt_java_appletviewer
;
retval
=
copy_strings_kernel
(
1
,
&
i_name
,
bprm
);
if
(
retval
<
0
)
return
retval
;
bprm
->
argc
++
;
/*
* OK, now restart the process with the interpreter's dentry.
*/
bprm
->
filename
=
binfmt_java_appletviewer
;
dentry
=
open_namei
(
binfmt_java_appletviewer
,
0
,
0
);
retval
=
PTR_ERR
(
dentry
);
if
(
IS_ERR
(
dentry
))
return
retval
;
bprm
->
dentry
=
dentry
;
retval
=
prepare_binprm
(
bprm
);
if
(
retval
<
0
)
return
retval
;
return
search_binary_handler
(
bprm
,
regs
);
}
static
int
load_java
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
{
int
retval
;
MOD_INC_USE_COUNT
;
retval
=
do_load_java
(
bprm
,
regs
);
MOD_DEC_USE_COUNT
;
return
retval
;
}
static
struct
linux_binfmt
java_format
=
{
#ifndef MODULE
NULL
,
0
,
load_java
,
NULL
,
NULL
#else
NULL
,
&
__this_module
,
load_java
,
NULL
,
NULL
#endif
};
static
int
load_applet
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
{
int
retval
;
MOD_INC_USE_COUNT
;
retval
=
do_load_applet
(
bprm
,
regs
);
MOD_DEC_USE_COUNT
;
return
retval
;
}
static
struct
linux_binfmt
applet_format
=
{
#ifndef MODULE
NULL
,
0
,
load_applet
,
NULL
,
NULL
#else
NULL
,
&
__this_module
,
load_applet
,
NULL
,
NULL
#endif
};
int
__init
init_java_binfmt
(
void
)
{
register_binfmt
(
&
java_format
);
return
register_binfmt
(
&
applet_format
);
}
#ifdef MODULE
int
init_module
(
void
)
{
return
init_java_binfmt
();
}
void
cleanup_module
(
void
)
{
unregister_binfmt
(
&
java_format
);
unregister_binfmt
(
&
applet_format
);
}
#endif
This diff is collapsed.
Click to expand it.
fs/buffer.c
View file @
606a2728
...
...
@@ -1246,7 +1246,6 @@ static int create_page_buffers(int rw, struct page *page, kdev_t dev, int b[], i
* two cases.
*/
if
(
bmap
&&
!
block
)
{
set_bit
(
BH_Uptodate
,
&
bh
->
b_state
);
memset
(
bh
->
b_data
,
0
,
size
);
}
}
...
...
@@ -1691,10 +1690,13 @@ int block_read_full_page(struct file * file, struct page * page)
nr
++
;
}
else
{
/*
* filesystem 'hole' represents zero-contents:
* filesystem 'hole' represents zero-contents.
*
* Don't mark the buffer up-to-date (that also implies
* that it is ok on disk, which it isn't), but _do_
* zero out the contents so that readers see the zeroes.
*/
memset
(
bh
->
b_data
,
0
,
blocksize
);
set_bit
(
BH_Uptodate
,
&
bh
->
b_state
);
}
}
iblock
++
;
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment