udf: Avoid dir link count to go negative
authorJan Kara <jack@suse.cz>
Thu, 4 Sep 2014 09:47:51 +0000 (11:47 +0200)
committerJan Kara <jack@suse.cz>
Thu, 4 Sep 2014 09:47:51 +0000 (11:47 +0200)
commit8a70ee3307908c46f952df91be72a18d5f5ad0a3
treebf5e1b58e99f4b3090d3811aec3411a728df5f40
parent44bf091f508913c1c35e70ea96430454c95c78f1
udf: Avoid dir link count to go negative

If we are writing back inode of unlinked directory, its link count ends
up being (u16)-1. Although the inode is deleted, udf_iget() can load the
inode when NFS uses stale file handle and get confused.

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