]> 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)
commit6f827c4182e3922d0ef2942ec3a4ca1fb4c6e1d9
treebd5fafca3ae02390d2f096c631ffd34eb98b4913
parent5f3e050a6dbca05b195015fc3202257830d770d6
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