]> Pileus Git - ~andy/linux/commit
CIFS: Protect i_nlink from being negative
authorSteve French <smfrench@gmail.com>
Fri, 3 Aug 2012 13:43:01 +0000 (08:43 -0500)
committerSteve French <smfrench@gmail.com>
Mon, 20 Aug 2012 03:30:00 +0000 (22:30 -0500)
commitb7ca69289680cf631fb20b7d436467c4ec1153cd
tree94c52c03ebf4efa68cb52df5aa60b554cf6cf999
parent6dab7ede9390d4d937cb89feca932e4fd575d2da
CIFS: Protect i_nlink from being negative

that can cause warning messages.  Pavel had initially
suggested a smaller patch around drop_nlink, after
a similar problem was discovered NFS.  Protecting
additional places where nlink is touched was
suggested by Jeff Layton and is included in this.

Reviewed-by: Pavel Shilovsky <pshilovsky@samba.org>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/inode.c
fs/cifs/link.c