Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1463504
| Path | csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Salah Triki <salah.triki@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/3] befs: befs: fix style issues in datastream.c |
| Date | Tue, 16 Aug 2016 09:50:01 +0200 |
| Message-ID | <s6Hih-c3-3@gated-at.bofh.it> (permalink) |
| References | <s5KLf-4dd-11@gated-at.bofh.it> <s5KLg-4dd-15@gated-at.bofh.it> |
| X-Original-To | Luis de Bethencourt <luisbg@osg.samsung.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wFLLD9Y7Iq6v+YQcDs9yp4hAEq+TqlskT2WWIT9OVpw=; b=Xd8ujRKG1KvyNChxQ37ZL7u7ur5HCNfc4XHwXDOUyw2FfLEk5C+thyG6t8z0yUqAgM H2TY1fbbWi0yIj5RiC12IpEEkU4zqusz+g+h1Ffx8+6J+peDfFmQif91v2QAQHPW/hDl RndSVj4dvbm1wNhQ+rY3b0BoSJD3/uUFac9mFyrGLI8dnfafK2uKF8pywgRh0L8btJTj bEVRARjrZbjR30faHJQA4O9tOq0lYgp5ObXCZMYcKZz4Xzc3HFiwxxiQqSw1BkPTAXtt 8Ulol8is5uK10CQXvtbO85QJt0AiTph3lYlzujkEtrmbMUytV5yIyp2TeXbK0s1xLk4H 9SSg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wFLLD9Y7Iq6v+YQcDs9yp4hAEq+TqlskT2WWIT9OVpw=; b=cMcScYipkxZ7rORn1hmwXNbr3AVAGHXtzicr+Z3bKTf/XITCHJWa9I4FqA5bReOKVc tXpJfVJcR0dZq0uoPy05rm1Dzyb6/xcilEbj0+eSpXQ4RTi/Mu5/zMCY4oedPnnP6rit FyzZ1w20y+z9cAiMiUzA0KV4ioxUtmnf7Lgsa80Sjgz7xdJV248q6Luk6Ak4pkHtHjit PEYtg0jsKeRUnda4eTrptIXiHHvgvt9SmgMEaC8R5gBbfFJwBe3oYLZiZ5Z4C1/z1iMg jk+YrOrRkj3L93dSJvtCluyEqyc6XbLFsMv52LnKeL0kItFmIRj7UlLO2relgF3QsjQS tBwQ== |
| X-Gm-Message-State | AEkoouv7nReQYe3Gtcpr64oLDl3sby4ohPQEFIsOqbiy13z9P+hiHzaeLbu+9OgMhYVG1w== |
| X-Received | by 10.28.107.144 with SMTP id a16mr20589013wmi.75.1471333207366; Tue, 16 Aug 2016 00:40:07 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 136 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org, akpm@linux-foundation.org, viro@zeniv.linux.org.uk, salah.triki@acm.org |
| X-Original-Date | Tue, 16 Aug 2016 08:40:00 +0100 |
| X-Original-Message-ID | <20160816074000.GC3889@pc> |
| X-Original-References | <1471108281-27169-1-git-send-email-luisbg@osg.samsung.com> <1471108281-27169-3-git-send-email-luisbg@osg.samsung.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1463504 |
Show key headers only | View raw
On Sat, Aug 13, 2016 at 06:11:21PM +0100, Luis de Bethencourt wrote:
> 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>
> ---
> fs/befs/datastream.c | 32 +++++++++++++++++---------------
> 1 file changed, 17 insertions(+), 15 deletions(-)
>
> diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c
> index 5ce85cf..b4c7ba0 100644
> --- a/fs/befs/datastream.c
> +++ b/fs/befs/datastream.c
> @@ -22,17 +22,17 @@ const befs_inode_addr BAD_IADDR = { 0, 0, 0 };
>
> static int befs_find_brun_direct(struct super_block *sb,
> const befs_data_stream *data,
> - befs_blocknr_t blockno, befs_block_run * run);
> + befs_blocknr_t blockno, befs_block_run *run);
>
> static int befs_find_brun_indirect(struct super_block *sb,
> const befs_data_stream *data,
> befs_blocknr_t blockno,
> - befs_block_run * run);
> + befs_block_run *run);
>
> static int befs_find_brun_dblindirect(struct super_block *sb,
> const befs_data_stream *data,
> befs_blocknr_t blockno,
> - befs_block_run * run);
> + befs_block_run *run);
>
> /**
> * befs_read_datastream - get buffer_head containing data, starting from pos.
> @@ -46,7 +46,7 @@ static int befs_find_brun_dblindirect(struct super_block *sb,
> */
> struct buffer_head *
> befs_read_datastream(struct super_block *sb, const befs_data_stream *ds,
> - befs_off_t pos, uint * off)
> + befs_off_t pos, uint *off)
> {
> struct buffer_head *bh;
> befs_block_run run;
> @@ -94,7 +94,7 @@ befs_read_datastream(struct super_block *sb, const befs_data_stream *ds,
> */
> int
> befs_fblock2brun(struct super_block *sb, const befs_data_stream *data,
> - befs_blocknr_t fblock, befs_block_run * run)
> + befs_blocknr_t fblock, befs_block_run *run)
> {
> int err;
> befs_off_t pos = fblock << BEFS_SB(sb)->block_shift;
> @@ -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;
> @@ -249,7 +250,7 @@ befs_count_blocks(struct super_block *sb, const befs_data_stream *ds)
> */
> static int
> befs_find_brun_direct(struct super_block *sb, const befs_data_stream *data,
> - befs_blocknr_t blockno, befs_block_run * run)
> + befs_blocknr_t blockno, befs_block_run *run)
> {
> int i;
> const befs_block_run *array = data->direct;
> @@ -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;
> @@ -304,7 +306,7 @@ static int
> befs_find_brun_indirect(struct super_block *sb,
> const befs_data_stream *data,
> befs_blocknr_t blockno,
> - befs_block_run * run)
> + befs_block_run *run)
> {
> int i, j;
> befs_blocknr_t sum = 0;
> @@ -413,7 +415,7 @@ static int
> befs_find_brun_dblindirect(struct super_block *sb,
> const befs_data_stream *data,
> befs_blocknr_t blockno,
> - befs_block_run * run)
> + befs_block_run *run)
> {
> int dblindir_indx;
> int indir_indx;
> --
> 2.5.1
>
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Thanks,
Salah
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3] befs: fix typos in datastream.c Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-08-13 19:20 +0200
[PATCH 3/3] befs: befs: fix style issues in datastream.c Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-08-13 19:20 +0200
[PATCH v2 3/3] befs: fix style issues in datastream.c Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-08-14 19:50 +0200
Re: [PATCH v2 3/3] befs: fix style issues in datastream.c Salah Triki <salah.triki@gmail.com> - 2016-08-16 09:40 +0200
Re: [PATCH 3/3] befs: befs: fix style issues in datastream.c Salah Triki <salah.triki@gmail.com> - 2016-08-16 09:50 +0200
Re: [PATCH 1/3] befs: fix typos in datastream.c Salah Triki <salah.triki@gmail.com> - 2016-08-16 09:30 +0200
csiph-web