diff options
author | Alex Elder <aelder@sgi.com> | 2010-04-13 15:22:29 +1000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 09:58:12 -0500 |
commit | 6881a229f66f74e4e0a73504389695213987955b (patch) | |
tree | 8faf52f576ab7bfc49712cfd98c49d23a596a98b /fs/lockd | |
parent | a0e856b0b4d182c4c52b568bd04bd96a172247a7 (diff) | |
download | blackbird-op-linux-6881a229f66f74e4e0a73504389695213987955b.tar.gz blackbird-op-linux-6881a229f66f74e4e0a73504389695213987955b.zip |
xfs: fix min bufsize bugs in two places
This fixes a bug in two places that I found by inspection. In
xlog_find_verify_cycle() and xlog_write_log_records(), the code
attempts to allocate a buffer to hold as many blocks as possible.
It gives up if the number of blocks to be allocated gets too small.
Right now it uses log->l_sectbb_log as that lower bound, but I'm
sure it's supposed to be the actual log sector size instead. That
is, the lower bound should be (1 << log->l_sectbb_log).
Also define a simple macro xlog_sectbb(log) to represent the number
of basic blocks in a sector for the given log.
(No change from original submission; I have implemented Christoph's
suggestion about storing l_sectsize rather than l_sectbb_log in
a new, separate patch in this series.)
Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions