linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers3@gmail.com>
To: pavi1729 <pavitra1729@gmail.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Query on freeing of new_fdt->open_fds in file.c
Date: Fri, 11 Dec 2015 18:38:13 -0600	[thread overview]
Message-ID: <20151212003813.GA889@zzz> (raw)
In-Reply-To: <CAMf7+LghwfEa=52v8o9vWzT7aSs0HaLuqMEE1d7MLSWwr2Kk6g@mail.gmail.com>

On Fri, Dec 11, 2015 at 05:21:40PM +0530, pavi1729 wrote:
> Hi,
>    I am unable to understand how
> 
>    new_fdt->open_fds can be freed in __free_fdtable when its an
> unsigned long in files_struct ?

The 'struct fdtable' is either embedded in the files_struct (if there are few
file descriptors) or allocated separately (if there are many file descriptors).
__free_fdtable() is only ever called if the 'struct fdtable' is *not* embedded.

      reply	other threads:[~2015-12-12  0:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 11:51 Query on freeing of new_fdt->open_fds in file.c pavi1729
2015-12-12  0:38 ` Eric Biggers [this message]

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=20151212003813.GA889@zzz \
    --to=ebiggers3@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=pavitra1729@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).