From: Filipe David Borba Manana Date: Mon, 16 Sep 2013 08:53:28 +0000 (+0100) Subject: Btrfs: don't store NULL byte in symlink extents X-Git-Tag: v3.13-rc1~85^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f06becc4119856c984e3beef54aa75538e656c6d;p=pandora-kernel.git Btrfs: don't store NULL byte in symlink extents It is not necessary to store the NULL byte in a symlink inline file extent. There's currently no code that requires the NULL byte to be present in the extent. This change also doesn't break file format compatibility nor the send/receive feature. The VFS also doesn't need the NULL byte to be present in the extent, as it reads up to inode->i_size bytes (which already excluded the NULL byte) and sets the NULL byte for us (in fs/namei.c:page_getlink()). So with this change we save 1 byte per symlink file extent (which is always inlined in the btree leaf) without losing backward and forward compatibility. Signed-off-by: Filipe David Borba Manana Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed