+ reiser4-restore-fibmap-ioctl-support-for-packed-files.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Reiser4: restore FIBMAP ioctl support for packed files

has been added to the -mm tree.  Its filename is

     reiser4-restore-fibmap-ioctl-support-for-packed-files.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Reiser4: restore FIBMAP ioctl support for packed files
From: Alexaner Zarochentsev <zam@xxxxxxxxxxx>

restore FIBMAP ioctl support for packed files, don't report block numbers for
not yet mapped to disk nodes.

Signed-off-by: Alexander Zarochentsev <zam@xxxxxxxxxxx>
Cc: Hans Reiser <reiser@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/reiser4/plugin/item/item.c |    2 +-
 fs/reiser4/plugin/item/tail.c |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff -puN fs/reiser4/plugin/item/item.c~reiser4-restore-fibmap-ioctl-support-for-packed-files fs/reiser4/plugin/item/item.c
--- a/fs/reiser4/plugin/item/item.c~reiser4-restore-fibmap-ioctl-support-for-packed-files
+++ a/fs/reiser4/plugin/item/item.c
@@ -614,7 +614,7 @@ item_plugin item_plugins[LAST_ITEM_ID] =
 				.write = reiser4_write_tail,
 				.read = reiser4_read_tail,
 				.readpage = readpage_tail,
-				.get_block = NULL,
+				.get_block = get_block_address_tail,
 				.append_key = append_key_tail,
 				.init_coord_extension =
 				init_coord_extension_tail
diff -puN fs/reiser4/plugin/item/tail.c~reiser4-restore-fibmap-ioctl-support-for-packed-files fs/reiser4/plugin/item/tail.c
--- a/fs/reiser4/plugin/item/tail.c~reiser4-restore-fibmap-ioctl-support-for-packed-files
+++ a/fs/reiser4/plugin/item/tail.c
@@ -790,7 +790,13 @@ get_block_address_tail(const coord_t * c
 {
 	assert("nikita-3252", znode_get_level(coord->node) == LEAF_LEVEL);
 
-	*block = *znode_get_block(coord->node);
+	if (reiser4_blocknr_is_fake(znode_get_block(coord->node)))
+		/* if node has'nt obtainet its block number yet, return 0.
+		 * Lets avoid upsetting users with some cosmic numbers beyond
+		 * the device capacity.*/
+		*block = 0;
+	else
+		*block = *znode_get_block(coord->node);
 	return 0;
 }
 
_

Patches currently in -mm which might be from zam@xxxxxxxxxxx are

reiser4-decribe-new-atom-locking-and-nested-atom-locks-to-lock-validator.patch
reiser4-use-generic-file-read.patch
reiser4-simplify-reading-of-partially-converted-files.patch
reiser4-use-page_offset.patch
reiser4-use-reiser4_gfp_mask_get-in-reiser4-inode-allocation.patch
reiser4-re-add-page_count-check-to-reiser4_releasepage.patch
reiser4-restore-fibmap-ioctl-support-for-packed-files.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux