]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2: deal with wraparounds of i_nlink in ocfs2_rename()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 13 Feb 2012 02:00:05 +0000 (21:00 -0500)
committerXiaowei.Hu <xiaowei.hu@oracle.com>
Wed, 29 Aug 2012 06:09:47 +0000 (14:09 +0800)
commit7c4fd2bdddb87204e1df0756991351c38e0865ee
treecad87eb9b915dc9486b90492afeac05952576027
parent52303861404717f40525fab7ac54c56ed8b04b92
ocfs2: deal with wraparounds of i_nlink in ocfs2_rename()

unfortunately, nlink_t may be smaller than 32 bits and ->i_nlink
on ocfs2 can grow up to 0xffffffff; storing it in nlink_t variable
will lose upper bits on such architectures.  Needs to be made u32,
until we get kernel-side nlink_t uniformly 32bit...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit 847c9db5cb50841589b8ebd3da0769b1b02fb3b2)

Signed-off-by: Xiaowei.Hu <xiaowei.hu@oracle.com>
fs/ocfs2/namei.c