mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
befs: befs: fix style issues in datastream.c
Fixing the following checkpatch.pl errors: ERROR: "foo * bar" should be "foo *bar" + befs_blocknr_t blockno, befs_block_run * run); WARNING: Missing a blank line after declarations + struct buffer_head *bh; + befs_debug(sb, "---> %s length: %llu", __func__, len); WARNING: Block comments use * on subsequent lines + /* + Double indir block, plus all the indirect blocks it maps. (and other instances of these) Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Salah Triki <salah.triki@gmail.com>
This commit is contained in:
parent
a20af5f9ea
commit
a17e7d2010
1 changed files with 17 additions and 15 deletions
|
@ -134,6 +134,7 @@ befs_read_lsymlink(struct super_block *sb, const befs_data_stream *ds,
|
|||
befs_off_t bytes_read = 0; /* bytes readed */
|
||||
u16 plen;
|
||||
struct buffer_head *bh;
|
||||
|
||||
befs_debug(sb, "---> %s length: %llu", __func__, len);
|
||||
|
||||
while (bytes_read < len) {
|
||||
|
@ -189,13 +190,13 @@ befs_count_blocks(struct super_block *sb, const befs_data_stream *ds)
|
|||
metablocks += ds->indirect.len;
|
||||
|
||||
/*
|
||||
Double indir block, plus all the indirect blocks it maps.
|
||||
In the double-indirect range, all block runs of data are
|
||||
BEFS_DBLINDIR_BRUN_LEN blocks long. Therefore, we know
|
||||
how many data block runs are in the double-indirect region,
|
||||
and from that we know how many indirect blocks it takes to
|
||||
map them. We assume that the indirect blocks are also
|
||||
BEFS_DBLINDIR_BRUN_LEN blocks long.
|
||||
* Double indir block, plus all the indirect blocks it maps.
|
||||
* In the double-indirect range, all block runs of data are
|
||||
* BEFS_DBLINDIR_BRUN_LEN blocks long. Therefore, we know
|
||||
* how many data block runs are in the double-indirect region,
|
||||
* and from that we know how many indirect blocks it takes to
|
||||
* map them. We assume that the indirect blocks are also
|
||||
* BEFS_DBLINDIR_BRUN_LEN blocks long.
|
||||
*/
|
||||
if (ds->size > ds->max_indirect_range && ds->max_indirect_range != 0) {
|
||||
uint dbl_bytes;
|
||||
|
@ -261,6 +262,7 @@ befs_find_brun_direct(struct super_block *sb, const befs_data_stream *data,
|
|||
sum += array[i].len, i++) {
|
||||
if (blockno >= sum && blockno < sum + (array[i].len)) {
|
||||
int offset = blockno - sum;
|
||||
|
||||
run->allocation_group = array[i].allocation_group;
|
||||
run->start = array[i].start + offset;
|
||||
run->len = array[i].len - offset;
|
||||
|
|
Loading…
Add table
Reference in a new issue