From: Jan Kara Date: Fri, 8 Feb 2008 12:20:50 +0000 (-0800) Subject: udf: cleanup directory offset handling X-Git-Tag: v2.6.25-rc1~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af793295bf9ee92660f5e77d337b0493cea3f9b9;p=pandora-kernel.git udf: cleanup directory offset handling Position in directory returned by readdir is offset of directory entry divided by four (don't ask me why). Make this conversion only when reading f_pos from userspace / writing it there and internally work in bytes. It makes things more easily readable and also fixes a bug (we forgot to divide length of the entry by 4 when advancing f_pos in udf_add_entry()). Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed