From: Nir Tzachar Subject: get_blocks_t semantics Date: Wed, 20 Jul 2005 17:03:02 +0300 Message-ID: <1121868182.18164.9.camel@nexus.cs.bgu.ac.il> Reply-To: tzachar@cs.bgu.ac.il Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-geSBnbwI+n62THfqFy8f" Return-path: Received: from indigo.cs.bgu.ac.il ([132.72.42.23]:61089 "EHLO indigo.cs.bgu.ac.il") by vger.kernel.org with ESMTP id S261210AbVGTOAm (ORCPT ); Wed, 20 Jul 2005 10:00:42 -0400 Received: from nexus.cs.bgu.ac.il (mas1123a [132.72.40.40]) by indigo.cs.bgu.ac.il (8.13.1/8.13.1) with ESMTP id j6KE32X7028335 for ; Wed, 20 Jul 2005 17:03:03 +0300 (IDT) To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org --=-geSBnbwI+n62THfqFy8f Content-Type: text/plain Content-Transfer-Encoding: quoted-printable hello list. can someone please explain the exact semantics the get_block_t function=20 (which is passed to mpage_readpage(s)) should implement?? i could not find any documentation, and existing code kind of baffled me... my current understanding goes like this: if the block is present, call map_bh on the bh, with the physical block number. else, if "create" is set, allocate a new block for the inode, and again update the new physical block number. is this all??=20 thanks. --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Nir Tzachar. --=-geSBnbwI+n62THfqFy8f Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC3lmWIHR+zI+Dam4RAiO1AKCCAQ0CBxR6l6Q0S4zrJ+EBaJ1GDwCfcOUQ 5Ap5mnpe1/RCrOXz0k7Is1s= =Dfhh -----END PGP SIGNATURE----- --=-geSBnbwI+n62THfqFy8f--