diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-09-22 19:17:40 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-09-29 15:04:33 -0400 |
commit | f3983c2133e9bea9c8b4f690737d15e3e9b02491 (patch) | |
tree | 89cc00b209368a41e5554ac1be103ef6e79d8fe1 /fs/cifs/inode.c | |
parent | f7a40689fd1e963cb1006349e050c07584895db5 (diff) |
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/inode.c')
0 files changed, 0 insertions, 0 deletions