All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Artem B. Bityuckiy" <dedekind@yandex.ru>
To: reiserfs-list@namesys.com
Subject: Minor note FYI
Date: Fri, 24 Jun 2005 15:38:01 +0400	[thread overview]
Message-ID: <42BBF099.4010906@yandex.ru> (raw)
In-Reply-To: <200505300737.j4U7bDKj002829@turing-police.cc.vt.edu>

Hello,

Look at the create_child_common() function at fs/reiser4/plugin/dir/dir.c:

There are _7_ places with the code like this in it:

result = blah();
if (result) {
	warning();
         DQUOT_FREE_INODE(object);
         object->i_flags |= S_NOQUOTA;
         return result;
}

isn't it cuter to use the classical way:

result = blah();
if (result) {
	warning();
	goto error;
}

...

error:
         DQUOT_FREE_INODE(object);
         object->i_flags |= S_NOQUOTA;
         return result;

?

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

  reply	other threads:[~2005-06-24 11:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1117392967.29669.ezmlm@namesys.com>
2005-05-29 19:25 ` Reiserfs 1300G partition on lvm problem Matthias Barremaecker
2005-05-29 21:37   ` Valdis.Kletnieks
2005-05-30  6:17     ` Matthias Barremaecker
2005-05-30  7:37       ` Valdis.Kletnieks
2005-06-24 11:38         ` Artem B. Bityuckiy [this message]
2005-05-31 13:51       ` Dan Oglesby
2005-05-31 14:14         ` Matthias Barremaecker
2005-05-31 15:09           ` Dan Oglesby
2005-05-31 17:31             ` Christian
2005-06-01  6:47             ` Reiserfsck 1300Gig failed with following error Matthias Barremaecker
2005-06-01 10:06               ` Vitaly Fertman
2005-06-01 10:57                 ` Matthias Barremaecker
2005-06-01 11:12                   ` Vitaly Fertman
2005-06-01 12:28                     ` Matthias Barremaecker
2005-06-01 12:52                       ` Vitaly Fertman
2005-06-01 13:32                         ` Matthias Barremaecker
2005-06-02 14:37             ` 13000Gig partition badblock check is the same -- do a reiserfsck again ? Matthias Barremaecker
2005-06-02 14:28               ` Dan Oglesby
2005-06-02 15:16                 ` Matthias Barremaecker
2005-06-02 15:04                   ` Dan Oglesby
2005-06-02 15:28                     ` Matthias Barremaecker
2005-06-02 21:03                 ` Valdis.Kletnieks
2005-06-02 21:32                   ` Dan Oglesby
2005-06-03  7:10                     ` 13000Gig partition badblock check is the same -- do a reiserfsck again ? -> ran badblocks Matthias Barremaecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42BBF099.4010906@yandex.ru \
    --to=dedekind@yandex.ru \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.