All of lore.kernel.org
 help / color / mirror / Atom feed
* UBIFS: Question about calc_dd_growth()
@ 2015-07-20  5:53 Dongsheng Yang
  0 siblings, 0 replies; only message in thread
From: Dongsheng Yang @ 2015-07-20  5:53 UTC (permalink / raw)
  To: Richard Weinberger, Artem Bityutskiy, linux-mtd

Hi Atem and Richard and all:

	I am doing some work about adding support of quota
in ubifs. But I found there is a question in  calc_dd_growth
I am confused about.

  417         if (req->dirtied_ino)
  418                 dd_growth += c->bi.inode_budget << 
(req->dirtied_ino - 1);

Why it's a '<<'?? I mean, to myself, it's clear to be that:

   dd_growth += c->bi.inode_budget * req->dirtied_ino;


Could you help to explain it to me?

Thanx
Yang

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-20  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20  5:53 UBIFS: Question about calc_dd_growth() Dongsheng Yang

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.