udf: Set i_generation field
authorJan Kara <jack@suse.cz>
Thu, 4 Sep 2014 14:26:19 +0000 (16:26 +0200)
committerJan Kara <jack@suse.cz>
Thu, 4 Sep 2014 19:37:40 +0000 (21:37 +0200)
commit470cca56c366428d4d5785a0a5a291619c332c7f
tree5b534bf2084b6021fcfb96fb92ec923bbd67442c
parent4071b913622316970d0e1919f7d82b4403fec5f2
udf: Set i_generation field

Currently UDF doesn't initialize i_generation in any way and thus NFS
can easily get reallocated inodes from stale file handles. Luckily UDF
already has a unique object identifier associated with each inode -
i_unique. Use that for initialization of i_generation.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/ialloc.c
fs/udf/inode.c