diff options
author | Jan Kara <jack@suse.cz> | 2008-02-08 13:20:50 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 18:22:36 +0100 |
commit | af793295bf9ee92660f5e77d337b0493cea3f9b9 (patch) | |
tree | 139f7dd09dbfcae1f98c3af52638e94a52ed5560 /fs/udf/symlink.c | |
parent | udf: avoid unnecessary synchronous writes (diff) | |
download | linux-af793295bf9ee92660f5e77d337b0493cea3f9b9.tar.xz linux-af793295bf9ee92660f5e77d337b0493cea3f9b9.zip |
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>
Diffstat (limited to 'fs/udf/symlink.c')
0 files changed, 0 insertions, 0 deletions