]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix decoding of inline abort codes from version 1 status records
authorDavid Howells <dhowells@redhat.com>
Wed, 8 Apr 2020 16:32:10 +0000 (17:32 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 13 Apr 2020 14:09:01 +0000 (15:09 +0100)
commit55aa23f6741727cdcda9daab09ce96505fd44f5d
tree79f6f8d3ff45bff5f5af3ec2a3a4529bf2fb008d
parenta6df443e66e505ba0348877b8663f4e1a37f2fc2
afs: Fix decoding of inline abort codes from version 1 status records

If we're decoding an AFSFetchStatus record and we see that the version is 1
and the abort code is set and we're expecting inline errors, then we store
the abort code and ignore the remaining status record (which is correct),
but we don't set the flag to say we got a valid abort code.

This can affect operation of YFS.RemoveFile2 when removing a file and the
operation of {,Y}FS.InlineBulkStatus when prospectively constructing or
updating of a set of inodes during a lookup.

Fix this to indicate the reception of a valid abort code.

Fixes: d3a14a02a041 ("afs: Fix unlink to handle YFS.RemoveFile2 better")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fsclient.c