]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: preallocate open stateid in process_open1()
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 17 Oct 2011 19:57:47 +0000 (15:57 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 17 Oct 2011 21:50:07 +0000 (17:50 -0400)
commit3ec71a07e77d5b557545d3852c5e27eec36204f4
treebd5fafca3ae02390d2f096c631ffd34eb98b4913
parentd467a63728bde6d71abc7fd5ebf5c99f66893a86
nfsd4: preallocate open stateid in process_open1()

As with the nfs4_file, we'd prefer to find out about any failure before
creating a new file rather than after.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/xdr4.h