summaryrefslogtreecommitdiffstats
path: root/fs/posix_acl.c
diff options
context:
space:
mode:
authorAlex Elder <aelder@sgi.com>2010-04-13 15:22:29 +1000
committerAlex Elder <aelder@sgi.com>2010-05-19 09:58:12 -0500
commit6881a229f66f74e4e0a73504389695213987955b (patch)
tree8faf52f576ab7bfc49712cfd98c49d23a596a98b /fs/posix_acl.c
parenta0e856b0b4d182c4c52b568bd04bd96a172247a7 (diff)
downloadop-kernel-dev-6881a229f66f74e4e0a73504389695213987955b.zip
op-kernel-dev-6881a229f66f74e4e0a73504389695213987955b.tar.gz
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/posix_acl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud