]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Fix nlink setting on inode creation
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 11 Jan 2012 12:35:05 +0000 (12:35 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 11 Jan 2012 12:35:05 +0000 (12:35 +0000)
commit0026b1abef9b841dd56a7577cbbb94966ed224a5
tree17db44f069274b4f42805c8fabdea841e4153737
parent5d3fa1d4300cc60a6b2cdf0fa7124df6f7c6dbb6
GFS2: Fix nlink setting on inode creation

Since the nlink count will be 0, we need to use set_nlink rather
than inc_nlink in order to avoid triggering the inc_nlink warning
which was added recently.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c