ufs: fix symlink creation on ufs2
authorEvgeniy Dushistov <dushistov@mail.ru>
Fri, 8 Feb 2008 12:20:16 +0000 (04:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:33 +0000 (09:22 -0800)
commit90b315af12b427eeb09b2812343fb4ef9d01cf17
tree907a54eebb048155dbbd091a11f2ff136ec45964
parent91dbbe4896f374462c5912fbb3ec0dbab4814783
ufs: fix symlink creation on ufs2

If we create symlink on UFS2 filesystem under Linux, it looks wrong under
other OSes, because of max symlink length field was not initialized
properly, and data blocks were not used to save short symlink names.

[akpm@linux-foundation.org: add missing fs32_to_cpu()]
Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Cc: Steven <stevenaaus@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ufs/super.c