Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 359424 Details for
Bug 485836
=sys-kernel/gentoo-sources-3.11.0 - btrfs errors in fs/btrfs/inode.c record_one_backref
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream patch
Btrfs-reset-ret-in-record_one_backref.patch (text/plain), 1009 bytes, created by
emil karlson
on 2013-09-25 11:17:50 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
emil karlson
Created:
2013-09-25 11:17:50 UTC
Size:
1009 bytes
patch
obsolete
>I was getting warnings when running find ./ -type f -exec btrfs fi defrag -f {} >\; from record_one_backref because ret was set. Turns out it was because it was >set to 1 because the search slot didn't come out exact and we never reset it. >So reset it to 0 right after the search so we don't leak this and get >uneccessary warnings. Thanks, > >Signed-off-by: Josef Bacik <jbacik@fusionio.com> >--- > fs/btrfs/inode.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > >diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c >index dd05238..a3a6155 100644 >--- a/fs/btrfs/inode.c >+++ b/fs/btrfs/inode.c >@@ -2132,6 +2132,7 @@ static noinline int record_one_backref(u64 inum, u64 offset, u64 root_id, > WARN_ON(1); > return ret; > } >+ ret = 0; > > while (1) { > cond_resched(); >@@ -2181,8 +2182,6 @@ static noinline int record_one_backref(u64 inum, u64 offset, u64 root_id, > old->len || extent_offset + num_bytes <= > old->extent_offset + old->offset) > continue; >- >- ret = 0; > break; > } > >-- >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 485836
:
359346
|
359348
|
359352
|
359354
| 359424 |
360296