Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
ed0dab6b
Commit
ed0dab6b
authored
Jan 22, 2008
by
Yan
Committed by
Chris Mason
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Add basic lockfs calls
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
f0c5da14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
fs/btrfs/super.c
fs/btrfs/super.c
+13
-1
No files found.
fs/btrfs/super.c
View file @
ed0dab6b
...
...
@@ -429,6 +429,17 @@ static struct file_system_type btrfs_fs_type = {
.
kill_sb
=
kill_block_super
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
static
void
btrfs_write_super_lockfs
(
struct
super_block
*
sb
)
{
struct
btrfs_root
*
root
=
btrfs_sb
(
sb
);
btrfs_transaction_flush_work
(
root
);
}
static
void
btrfs_unlockfs
(
struct
super_block
*
sb
)
{
struct
btrfs_root
*
root
=
btrfs_sb
(
sb
);
btrfs_transaction_queue_work
(
root
,
HZ
*
30
);
}
static
struct
super_operations
btrfs_super_ops
=
{
.
delete_inode
=
btrfs_delete_inode
,
...
...
@@ -442,8 +453,9 @@ static struct super_operations btrfs_super_ops = {
.
alloc_inode
=
btrfs_alloc_inode
,
.
destroy_inode
=
btrfs_destroy_inode
,
.
statfs
=
btrfs_statfs
,
.
write_super_lockfs
=
btrfs_write_super_lockfs
,
.
unlockfs
=
btrfs_unlockfs
,
};
static
int
__init
init_btrfs_fs
(
void
)
{
int
err
;
...
...
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