Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e8de6e05
Commit
e8de6e05
authored
Apr 02, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Apr 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] minixfs cleanups (2/4)
Clean up the write_super-related code in minixfs
parent
a14bf037
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
28 deletions
+1
-28
fs/minix/inode.c
fs/minix/inode.c
+1
-28
No files found.
fs/minix/inode.c
View file @
e8de6e05
...
@@ -33,27 +33,6 @@ static void minix_delete_inode(struct inode *inode)
...
@@ -33,27 +33,6 @@ static void minix_delete_inode(struct inode *inode)
unlock_kernel
();
unlock_kernel
();
}
}
static
void
minix_commit_super
(
struct
super_block
*
sb
)
{
mark_buffer_dirty
(
minix_sb
(
sb
)
->
s_sbh
);
sb
->
s_dirt
=
0
;
}
static
void
minix_write_super
(
struct
super_block
*
sb
)
{
struct
minix_super_block
*
ms
;
if
(
!
(
sb
->
s_flags
&
MS_RDONLY
))
{
ms
=
minix_sb
(
sb
)
->
s_ms
;
if
(
ms
->
s_state
&
MINIX_VALID_FS
)
ms
->
s_state
&=
~
MINIX_VALID_FS
;
minix_commit_super
(
sb
);
}
sb
->
s_dirt
=
0
;
}
static
void
minix_put_super
(
struct
super_block
*
sb
)
static
void
minix_put_super
(
struct
super_block
*
sb
)
{
{
int
i
;
int
i
;
...
@@ -124,7 +103,6 @@ static struct super_operations minix_sops = {
...
@@ -124,7 +103,6 @@ static struct super_operations minix_sops = {
write_inode:
minix_write_inode
,
write_inode:
minix_write_inode
,
delete_inode:
minix_delete_inode
,
delete_inode:
minix_delete_inode
,
put_super:
minix_put_super
,
put_super:
minix_put_super
,
write_super:
minix_write_super
,
statfs:
minix_statfs
,
statfs:
minix_statfs
,
remount_fs:
minix_remount
,
remount_fs:
minix_remount
,
};
};
...
@@ -144,15 +122,11 @@ static int minix_remount (struct super_block * sb, int * flags, char * data)
...
@@ -144,15 +122,11 @@ static int minix_remount (struct super_block * sb, int * flags, char * data)
/* Mounting a rw partition read-only. */
/* Mounting a rw partition read-only. */
ms
->
s_state
=
sbi
->
s_mount_state
;
ms
->
s_state
=
sbi
->
s_mount_state
;
mark_buffer_dirty
(
sbi
->
s_sbh
);
mark_buffer_dirty
(
sbi
->
s_sbh
);
sb
->
s_dirt
=
1
;
}
else
{
minix_commit_super
(
sb
);
}
else
{
/* Mount a partition which is read-only, read-write. */
/* Mount a partition which is read-only, read-write. */
sbi
->
s_mount_state
=
ms
->
s_state
;
sbi
->
s_mount_state
=
ms
->
s_state
;
ms
->
s_state
&=
~
MINIX_VALID_FS
;
ms
->
s_state
&=
~
MINIX_VALID_FS
;
mark_buffer_dirty
(
sbi
->
s_sbh
);
mark_buffer_dirty
(
sbi
->
s_sbh
);
sb
->
s_dirt
=
1
;
if
(
!
(
sbi
->
s_mount_state
&
MINIX_VALID_FS
))
if
(
!
(
sbi
->
s_mount_state
&
MINIX_VALID_FS
))
printk
(
"MINIX-fs warning: remounting unchecked fs, "
printk
(
"MINIX-fs warning: remounting unchecked fs, "
...
@@ -271,7 +245,6 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)
...
@@ -271,7 +245,6 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)
if
(
!
(
s
->
s_flags
&
MS_RDONLY
))
{
if
(
!
(
s
->
s_flags
&
MS_RDONLY
))
{
ms
->
s_state
&=
~
MINIX_VALID_FS
;
ms
->
s_state
&=
~
MINIX_VALID_FS
;
mark_buffer_dirty
(
bh
);
mark_buffer_dirty
(
bh
);
s
->
s_dirt
=
1
;
}
}
if
(
!
(
sbi
->
s_mount_state
&
MINIX_VALID_FS
))
if
(
!
(
sbi
->
s_mount_state
&
MINIX_VALID_FS
))
printk
(
"MINIX-fs: mounting unchecked file system, "
printk
(
"MINIX-fs: mounting unchecked file system, "
...
...
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