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
Kirill Smelkov
linux
Commits
68067d0e
Commit
68067d0e
authored
Aug 30, 2002
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: Add write_super_lockfs() and unlock_fs() for snapshot.
Submitted by Steve Best.
parent
7dfc72fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
fs/jfs/super.c
fs/jfs/super.c
+27
-0
No files found.
fs/jfs/super.c
View file @
68067d0e
...
...
@@ -377,6 +377,31 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
return
-
EINVAL
;
}
static
void
jfs_write_super_lockfs
(
struct
super_block
*
sb
)
{
struct
jfs_sb_info
*
sbi
=
JFS_SBI
(
sb
);
log_t
*
log
=
sbi
->
log
;
if
(
!
(
sb
->
s_flags
&
MS_RDONLY
))
{
txQuiesce
(
sb
);
lmLogShutdown
(
log
);
}
}
static
void
jfs_unlockfs
(
struct
super_block
*
sb
)
{
struct
jfs_sb_info
*
sbi
=
JFS_SBI
(
sb
);
log_t
*
log
=
sbi
->
log
;
int
rc
=
0
;
if
(
!
(
sb
->
s_flags
&
MS_RDONLY
))
{
if
((
rc
=
lmLogInit
(
log
)))
jERROR
(
1
,
(
"jfs_unlock failed with return code %d
\n
"
,
rc
));
else
txResume
(
sb
);
}
}
static
struct
super_block
*
jfs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
...
...
@@ -390,6 +415,8 @@ static struct super_operations jfs_super_operations = {
.
write_inode
=
jfs_write_inode
,
.
delete_inode
=
jfs_delete_inode
,
.
put_super
=
jfs_put_super
,
.
write_super_lockfs
=
jfs_write_super_lockfs
,
.
unlockfs
=
jfs_unlockfs
,
.
statfs
=
jfs_statfs
,
.
remount_fs
=
jfs_remount
,
};
...
...
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