Home
last modified time | relevance | path

Searched hist:af793295bf9ee92660f5e77d337b0493cea3f9b9 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/udf/
H A Ddirectory.cdiff af793295bf9ee92660f5e77d337b0493cea3f9b9 Fri Feb 08 06:20:50 CST 2008 Jan Kara <jack@suse.cz> 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 <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
H A Dnamei.cdiff af793295bf9ee92660f5e77d337b0493cea3f9b9 Fri Feb 08 06:20:50 CST 2008 Jan Kara <jack@suse.cz> 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 <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
H A Dinode.cdiff af793295bf9ee92660f5e77d337b0493cea3f9b9 Fri Feb 08 06:20:50 CST 2008 Jan Kara <jack@suse.cz> 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 <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>