Displaying 18 results from an estimated 18 matches for "max_bytes".
2013 Oct 09
2
[PATCH] Btrfs: add tests for find_lock_delalloc_range
...@@ -1598,11 +1598,10 @@ done:
*
* 1 is returned if we find something, 0 if nothing was in the tree
*/
-static noinline u64 find_lock_delalloc_range(struct inode *inode,
- struct extent_io_tree *tree,
- struct page *locked_page,
- u64 *start, u64 *end,
- u64 max_bytes)
+STATIC u64 find_lock_delalloc_range(struct inode *inode,
+ struct extent_io_tree *tree,
+ struct page *locked_page, u64 *start,
+ u64 *end, u64 max_bytes)
{
u64 delalloc_start;
u64 delalloc_end;
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 6dbc645..f986...
2013 Oct 08
3
[PATCH] Btrfs: limit delalloc pages outside of find_delalloc_range
...2bf6f46 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1491,10 +1491,8 @@ static noinline u64 find_delalloc_range(struct extent_io_tree *tree,
cur_start = state->end + 1;
node = rb_next(node);
total_bytes += state->end - state->start + 1;
- if (total_bytes >= max_bytes) {
- *end = *start + max_bytes - 1;
+ if (total_bytes >= max_bytes)
break;
- }
if (!node)
break;
}
@@ -1636,10 +1634,9 @@ again:
/*
* make sure to limit the number of pages we try to lock down
- * if we''re looping.
*/
- if (delalloc_end + 1 - delalloc_start &...
2010 Feb 02
0
[PATCH] Btrfs: cache extent state in find_delalloc_range
.../extent_io.c
index 42b4cde..1376611 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1171,7 +1171,8 @@ out:
* 1 is returned if we find something, 0 if nothing was in the tree
*/
static noinline u64 find_delalloc_range(struct extent_io_tree *tree,
- u64 *start, u64 *end, u64 max_bytes)
+ u64 *start, u64 *end, u64 max_bytes,
+ struct extent_state **cached_state)
{
struct rb_node *node;
struct extent_state *state;
@@ -1203,8 +1204,11 @@ static noinline u64 find_delalloc_range(struct extent_io_tree *tree,
*end = state->end;
goto out;
}
- if (!found)
+...
2011 Jun 02
2
Custom sql query for keeping quota with dict-sql
Hello!
I'd like to setup quota for for virtualusers, i'm using both maildir++
and mdbox as storage, and i'm using postgresql to keep users.
I'm keeping all users data in one table:
[...]
login text NOT NULL,
domain text,
password text,
quota_mb integer NOT NULL DEFAULT 0
[... other columns ...]
i'd like to keep present quota in such two columns:
quota_dict_bytes integer NOT
2016 Mar 26
2
DW_TAG_member extends beyond the bounds error on Linux
...= {
small_ = {}
ml_ = (data_ = "", size_ = 0, capacity_ = 1080863910568919040)
}
}
}
(facebook::biggrep::Options &) options = 0x00007fd133cfb7b0: {
engine = error: summary string parsing error
full_lines = true
user = error: summary string parsing error
max_bytes = 5000000
leading_context = 0
trailing_context = 0
case_sensitive = true
client_hostname = error: summary string parsing error
client_ip = error: summary string parsing error
skip_logging = false
client_port = 0
shards_override = 0
sample = false
count = false
filename_pattern...
2020 Apr 16
1
[PATCH] drm/nouveau: Fix regression by audio component transition
...in_eld_notify(acomp->audio_ops->audio_ptr,
- port, -1);
+ port, dev_id);
}
static int
-nv50_audio_component_get_eld(struct device *kdev, int port, int pipe,
+nv50_audio_component_get_eld(struct device *kdev, int port, int dev_id,
bool *enabled, unsigned char *buf, int max_bytes)
{
struct drm_device *drm_dev = dev_get_drvdata(kdev);
@@ -505,7 +506,8 @@ nv50_audio_component_get_eld(struct device *kdev, int port, int pipe,
nv_encoder = nouveau_encoder(encoder);
nv_connector = nouveau_encoder_connector_get(nv_encoder);
nv_crtc = nouveau_crtc(encoder->crtc);
-...
2020 Jan 13
0
[PATCH RESEND] drm/nouveau: Add HD-audio component notifier support
...mp->audio_ops && acomp->audio_ops->pin_eld_notify)
+ acomp->audio_ops->pin_eld_notify(acomp->audio_ops->audio_ptr,
+ port, -1);
+}
+
+static int
+nv50_audio_component_get_eld(struct device *kdev, int port, int pipe,
+ bool *enabled, unsigned char *buf, int max_bytes)
+{
+ struct drm_device *drm_dev = dev_get_drvdata(kdev);
+ struct nouveau_drm *drm = nouveau_drm(drm_dev);
+ struct drm_encoder *encoder;
+ struct nouveau_encoder *nv_encoder;
+ struct nouveau_connector *nv_connector;
+ struct nouveau_crtc *nv_crtc;
+ int ret = 0;
+
+ *enabled = false;
+ drm_for_e...
2016 Oct 06
2
[imap-login] SSL related crashes using the latest 2.2.25
...16 0x00000000004029c9 in _start ()
No symbol table info available.
Core was generated by `dovecot/imap-login -D'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f029b173314 in str_sanitize_skip_start
(src=0x2f6d6f632e61636f <Address 0x2f6d6f632e61636f out of bounds>,
max_bytes=64) at str-sanitize.c:13
13 for (i = 0; i < max_bytes && src[i] != '\0'; ) {
(gdb) bt full
#0 0x00007f029b173314 in str_sanitize_skip_start
(src=0x2f6d6f632e61636f <Address 0x2f6d6f632e61636f out of bounds>,
max_bytes=64) at str-sanitize.c:13
chr = 0
i...
2016 Mar 27
0
DW_TAG_member extends beyond the bounds error on Linux
...(data_ = "", size_ = 0, capacity_ = 1080863910568919040)
> }
> }
> }
> (facebook::biggrep::Options &) options = 0x00007fd133cfb7b0: {
> engine = error: summary string parsing error
> full_lines = true
> user = error: summary string parsing error
> max_bytes = 5000000
> leading_context = 0
> trailing_context = 0
> case_sensitive = true
> client_hostname = error: summary string parsing error
> client_ip = error: summary string parsing error
> skip_logging = false
> client_port = 0
> shards_override = 0
> samp...
2009 Aug 24
0
[PATCH] Btrfs: proper metadata -ENOSPC handling
...ensure that we don''t run out of metadata
+ * space. So calculate the amount of metadata space we
+ * currently have available, and subtract the amount of space
+ * that would be needed to commit the transaction so we make
+ * sure that we can always commit.
+ */
+ cur_trans->max_bytes = btrfs_metadata_free_space(root);
+ BUG_ON(cur_trans->max_bytes < root_bytes);
+ cur_trans->max_bytes -= root_bytes;
+
spin_lock(&root->fs_info->new_trans_lock);
root->fs_info->running_transaction = cur_trans;
spin_unlock(&root->fs_info->new_trans_lock...
2018 Nov 21
2
Crash in director for secure lmtp proxy connections
...<optimized out>
count = <optimized out>
i = <optimized out>
ret = <optimized out>
dstream = <optimized out>
iov_arr = {arr = {buffer = 0x56000679c318, element_size = 16}, v = 0x56000679c318, v_modifiable = 0x56000679c318}
max_bytes = <optimized out>
added = <optimized out>
iov = 0x7fff6be37710
iov_new = <optimized out>
sent = <optimized out>
__func__ = "o_stream_dot_sendv"
size = <optimized out>
p = <optimized out>
io...
2016 Mar 27
1
DW_TAG_member extends beyond the bounds error on Linux
..., capacity_ = 1080863910568919040)
>> }
>> }
>> }
>> (facebook::biggrep::Options &) options = 0x00007fd133cfb7b0: {
>> engine = error: summary string parsing error
>> full_lines = true
>> user = error: summary string parsing error
>> max_bytes = 5000000
>> leading_context = 0
>> trailing_context = 0
>> case_sensitive = true
>> client_hostname = error: summary string parsing error
>> client_ip = error: summary string parsing error
>> skip_logging = false
>> client_port = 0
>>...
2016 Mar 27
0
DW_TAG_member extends beyond the bounds error on Linux
...0)
>>> }
>>> }
>>> }
>>> (facebook::biggrep::Options &) options = 0x00007fd133cfb7b0: {
>>> engine = error: summary string parsing error
>>> full_lines = true
>>> user = error: summary string parsing error
>>> max_bytes = 5000000
>>> leading_context = 0
>>> trailing_context = 0
>>> case_sensitive = true
>>> client_hostname = error: summary string parsing error
>>> client_ip = error: summary string parsing error
>>> skip_logging = false
>>>...
2017 Oct 07
0
Core Dumps with dovecot-2.2 -git as of 2.2.devel (eaf276b33)
...__FUNCTION__ = "o_stream_file_cork"
#8 0x00007f8bb657e289 in o_stream_cork (stream=0x220a0a0) at ostream.c:146
_stream = 0x220a010
#9 0x00007f8bb12d6406 in openssl_iostream_bio_output (ssl_io=0x220aa00)
at iostream-openssl.c:325
bytes = 140238036407941
max_bytes = 18446742978492891135
sent = 35692560
buffer = "\027\003\003\000\001\000\000\000\020\240
\002\000\000\000\000\200\254\035\370\376\177\000\000\022\343W\266\213\177\000\000`\214\033\002\000\000\000\000\240\240
\002\000\000\000\000`\214\033\002\000\000\000\000\020\240
\002\0...
2017 Oct 07
0
Core Dumps with dovecot-2.2 -git as of 2.2.devel (eaf276b33)
...?????? __FUNCTION__ = "o_stream_file_cork"
#8? 0x00007f8bb657e289 in o_stream_cork (stream=0x220a0a0) at ostream.c:146
???????? _stream = 0x220a010
#9? 0x00007f8bb12d6406 in openssl_iostream_bio_output (ssl_io=0x220aa00)
at iostream-openssl.c:325
???????? bytes = 140238036407941
???????? max_bytes = 18446742978492891135
???????? sent = 35692560
???????? buffer = "\027\003\003\000\001\000\000\000\020\240
\002\000\000\000\000\200\254\035\370\376\177\000\000\022\343W\266\213\177\000\000`\214\033\002\000\000\000\000\240\240
\002\000\000\000\000`\214\033\002\000\000\000\000\020\240
\002\0...
2010 Feb 18
4
"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
Hi all,
Environment:
Compiler: IBM XL C/C++ Enterprise Edition for AIX v9.0
Server: AIX 5.3 TL 10 SP1
I use configure with the following option to configure the makefile.
--------------------------------?
export CC=cc
export CFLAGS="-I/opt/freeware/include/openssl/ -I/usr/local/include"
export LDFLAGS="-L/opt/freeware/lib/ -L/usr/local/lib"
./configure --prefix=/usr/local
2020 Nov 06
4
[PATCH 0/3] drm/nouveau: extend the lifetime of nouveau_drm
Hi folks,
Currently, when the device is removed (or the driver is unbound) the
nouveau_drm structure de-allocated. However, it's still accessible from
and used by some DRM layer callbacks. For example, file handles can be
closed after the device has been removed (physically or otherwise). This
series converts the Nouveau device structure to be allocated and
de-allocated with the
2013 Apr 19
8
[PATCH 0 of 8] blktap3/libvhd: Introduce VHD library.
This patch series introduces the VHD library. It is based on the blktap2 one,
with changes coming from the blktap2.5 one.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>