summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_dfs_ref.c
diff options
context:
space:
mode:
authorJeff Layton2010-09-23 01:17:40 +0200
committerSteve French2010-09-29 21:04:33 +0200
commitf3983c2133e9bea9c8b4f690737d15e3e9b02491 (patch)
tree89cc00b209368a41e5554ac1be103ef6e79d8fe1 /fs/cifs/cifs_dfs_ref.c
parentcifs: have cifs_new_fileinfo take a tcon arg (diff)
downloadkernel-qcow2-linux-f3983c2133e9bea9c8b4f690737d15e3e9b02491.tar.gz
kernel-qcow2-linux-f3983c2133e9bea9c8b4f690737d15e3e9b02491.tar.xz
kernel-qcow2-linux-f3983c2133e9bea9c8b4f690737d15e3e9b02491.zip
cifs: fix handling of signing with writepages (try #6)
Get a reference to the file early so we can eventually base the decision about signing on the correct tcon. If that doesn't work for some reason, then fall back to generic_writepages. That's just as likely to fail, but it simplifies the error handling. In truth, I'm not sure how that could occur anyway, so maybe a NULL open_file here ought to be a BUG()? After that, we drop the reference to the open_file and then we re-get one prior to each WriteAndX call. This helps ensure that the filehandle isn't held open any longer than necessary and that open files are reclaimed prior to each write call. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_dfs_ref.c')
0 files changed, 0 insertions, 0 deletions