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
3ce7e67a
Commit
3ce7e67a
authored
Jul 31, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Drop some debugging around the extent_map pinned flag
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
61b49440
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
31 deletions
+1
-31
fs/btrfs/file.c
fs/btrfs/file.c
+1
-9
fs/btrfs/inode.c
fs/btrfs/inode.c
+0
-22
No files found.
fs/btrfs/file.c
View file @
3ce7e67a
...
...
@@ -380,15 +380,7 @@ int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end)
spin_unlock
(
&
em_tree
->
lock
);
break
;
}
if
(
test_bit
(
EXTENT_FLAG_PINNED
,
&
em
->
flags
))
{
printk
(
KERN_CRIT
"inode %lu trying to drop pinned "
"extent start %llu end %llu, em [%llu %llu]
\n
"
,
inode
->
i_ino
,
(
unsigned
long
long
)
start
,
(
unsigned
long
long
)
end
,
(
unsigned
long
long
)
em
->
start
,
(
unsigned
long
long
)
em
->
len
);
}
clear_bit
(
EXTENT_FLAG_PINNED
,
&
em
->
flags
);
remove_extent_mapping
(
em_tree
,
em
);
if
(
em
->
block_start
<
EXTENT_MAP_LAST_BYTE
&&
...
...
fs/btrfs/inode.c
View file @
3ce7e67a
...
...
@@ -505,15 +505,9 @@ static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end)
struct
btrfs_trans_handle
*
trans
;
struct
btrfs_ordered_extent
*
ordered_extent
;
struct
extent_io_tree
*
io_tree
=
&
BTRFS_I
(
inode
)
->
io_tree
;
struct
extent_map_tree
*
em_tree
=
&
BTRFS_I
(
inode
)
->
extent_tree
;
struct
extent_map
*
em
;
struct
extent_map
*
em_orig
;
u64
alloc_hint
=
0
;
u64
clear_start
;
u64
clear_end
;
struct
list_head
list
;
struct
btrfs_key
ins
;
struct
rb_node
*
rb
;
int
ret
;
ret
=
btrfs_dec_test_ordered_pending
(
inode
,
start
,
end
-
start
+
1
);
...
...
@@ -542,22 +536,6 @@ static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end)
mutex_lock
(
&
BTRFS_I
(
inode
)
->
extent_mutex
);
spin_lock
(
&
em_tree
->
lock
);
clear_start
=
ordered_extent
->
file_offset
;
clear_end
=
ordered_extent
->
file_offset
+
ordered_extent
->
len
;
em
=
lookup_extent_mapping
(
em_tree
,
clear_start
,
ordered_extent
->
len
);
em_orig
=
em
;
while
(
em
&&
clear_start
<
extent_map_end
(
em
)
&&
clear_end
>
em
->
start
)
{
clear_bit
(
EXTENT_FLAG_PINNED
,
&
em
->
flags
);
rb
=
rb_next
(
&
em
->
rb_node
);
if
(
!
rb
)
break
;
em
=
rb_entry
(
rb
,
struct
extent_map
,
rb_node
);
}
free_extent_map
(
em_orig
);
spin_unlock
(
&
em_tree
->
lock
);
ret
=
btrfs_drop_extents
(
trans
,
root
,
inode
,
ordered_extent
->
file_offset
,
ordered_extent
->
file_offset
+
...
...
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