summaryrefslogtreecommitdiff
path: root/fs/cifs
AgeCommit message (Collapse)AuthorFilesLines
2005-11-07[PATCH] kfree cleanup: fsJesper Juhl5-92/+45
This is the fs/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in fs/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-27[CIFS] Change pragma pack(1) to attribute(packed) to allow cifs on arm to accessSteve French3-186/+182
unaligned structures coming in off the wire gcc on arm processors generates very odd code with pragma pack specified - although it does pack the structures in some sense - it does not allow you to access unaligned elements in nested structures at the right offset as other architectures do. Oddly enough though, specifying the structures as packed the long way - one by one with the packed attribute does work. Rather than fighting over whether this is a gcc bug or some obscure side effect of pragma pack, it is easier to do what most (all but 96 other places in the kernel) do - and replace pragma pack with dozens of attribute(packed) structure qualifiers. Much more verbose ... but at least it works. Signed-off-by: David Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com> CG: -----------------------------------------------------------------------
2005-10-21Merge with /pub/scm/linux/kernel/git/sfrench/cifs-2.6.git/Steve French24-545/+2266
2005-10-20[CIFS] Defer close of file handle slightly if there are pending writes thatSteve French5-25/+73
need to get in ahead of it that depend on that file handle. Fixes occassional bad file handle errors on write with heavy use multiple process cases. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-12CIFS: cifs_writepages should not write beyond end of fileSteve French1-2/+13
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-11[CIFS] Add null malloc response check in notify experimental codeSteve French2-14/+20
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-11[CIFS] CIFS Stats improvementsSteve French9-8/+98
New cifs_writepages routine was not updated bytes written in cifs stats. Also added ability to clear /proc/fs/cifs/Stats by writing (0 or 1) to it. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-10[CIFS] Fix oops in experimental notify code (when CONFIG_CIFS_EXPERIMENTALSteve French4-1/+12
was turned on). Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-10[CIFS] Still missing a line from previous fixSteve French1-1/+1
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-10[CIFS] Fix minor build problem with previous changesetSteve French1-5/+8
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-10[CIFS] Do not shrink tcp sndbuf/rcvbuf from their defaultsSteve French1-8/+10
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-10[CIFS] Correct cifs tcp retry when some data sent before getting EAGAIN.Steve French2-2/+20
Continue implementation of cifs umount begin to allow force unmounts of cifs mounts. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-10[CIFS] Update cifs version to 1.38Steve French1-1/+1
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-10[CIFS] Fix byte range locking to Windows when Windows server returnsSteve French4-12/+32
illegal RFC1001 length (which had caused the lock to block forever until killed).
2005-10-10[CIFS] Fix rsize calculation so that large readx flag is checked.Steve French3-8/+28
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-10[CIFS] Reduce CIFS tcp congestion timeout (it was too long) and backoffSteve French3-11/+22
ever longer amounts (up to 15 seconds). This improves performance especially when using large wsize. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-07[CIFS] /proc/fs/cifs debug code cleanup and new stats2Steve French3-5/+41
These changes to debug code and new stats are helpful in debugging potential tcp performance/configuration problems under cifs. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-05[CIFS] cleanup sparse and compile errors in previous fixSteve French2-4/+3
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-05CIFS: Allow wsize to exceed CIFSMaxBufSizeSteve French3-16/+10
This allows cifs_writepages to send data in larger chunks from the page cache, without requiring larger memory allocations in other cases. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-05CIFS: implement cifs_writepages to perform multi-page I/OSteve French2-11/+190
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-05CIFS: Create routine find_writable_file to reduce redundant codeSteve French3-119/+50
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-03[CIFS] Missing parenthesis from error message in previous fixSteve French1-1/+1
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-03[CIFS] Allow SMBWrite2 to work to older serversSteve French1-7/+22
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-03[CIFS] Add writepages support to shrink memory usage on writes,Steve French5-72/+89
eliminate the double copy, and improve cifs write performance and help the server by upping the typical write size from 4K to 16K (or even larger if wsize set explicitly) for servers which support this. Part 1 of 2 Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-09-23[PATCH] cifs: Add support for suspendSteve French2-0/+4
cifsd had been preventing software suspend from completing. Signed-off-by: pavel@suse.de Signed-off-by: Steve French <sfrench@us.ibm.com> lightly modified Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-22[CIFS] Various minor bigendian fixes and sparse level 2 warning message fixesSteve French8-33/+60
Most important of these fixes mapchars on bigendian and a few statfs fields Signed-off-by: Shaggy (shaggy@austin.ibm.com) Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-21[CIFS] Add support for legacy servers part nine. statfs (df and du) is nowSteve French7-10/+107
functional, and the length check is fixed so readdir does not throw a warning message when windows me messes up the response to FindFirst of an empty dir (with only . and ..). Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-20[CIFS] Add support for legacy servers part eight. Write fixes for WindowsSteve French4-31/+66
ME, and do not set ctime unless explicitly requested with atime and/or mtime (it gets thrown away by most servers anyway as there is no way to set this via posix). Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-18[CIFS] Add support for legacy servers part seven. Fix open for write,Steve French2-4/+21
begin implementation of Win9x style set file size via open then write of zero bytes. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-15[CIFS] Add support for legacy servers part six. Fix read syntax soSteve French1-0/+7
we do not request more than negotiated buffer size even if buffer size is small (smaller than one page) Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-15[CIFS] Fix readdir caching when unlink removes file in current searchSteve French3-6/+38
buffer, and this is followed by a rewind search to just before the deleted entry. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-15[CIFS] Fix compiler warningsSteve French4-5/+6
Fix some compiler warnings noticed on x64 by me and ppc64 by Shaggy Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-10[PATCH] fs: fix-up schedule_timeout() usageNishanth Aravamudan1-4/+2
Use schedule_timeout_{,un}interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Also use helper functions to convert between human time units and jiffies rather than constant HZ division to avoid rounding errors. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-07[PATCH] fs: convert kcalloc to kzallocPekka Enberg1-41/+41
This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-07[PATCH] cifs_create() fixMiklos Szeredi1-14/+13
cifs_create() did totally the wrong thing with nd->intent.open.flags: it interpreted nd->intent.open.flags as the original open flags, not the one transformed for open_namei(). Also it used the intent data even if it was not filled in (if called from sys_mknod()). Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Cc: <viro@parcelfarce.linux.theplanet.co.uk> Cc: Christoph Hellwig <hch@lst.de> Cc: Steven French <sfrench@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-06[CIFS] Update cifs TODO list with additional new features thatSteve French1-17/+31
have been requested. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-31[CIFS] Add support for legacy servers part 5Steve French5-137/+39
Handle small negotiated read sizes (under 4K) and finish up read and write support. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-30[CIFS] Add support for legacy servers part 4Steve French3-23/+72
Fix WriteX support for old servers which do not support large files. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-30[CIFS] Add nolock synonym (ala nfs) for nobrl to disable sending byte rangeSteve French1-1/+2
locks remotely. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-30[CIFS] Add support for suspendSteve French3-1/+8
cifsd had been preventing software suspend from completing. Signed-off-by: pavel@suse.de Signed-off-by: Steve French <sfrench@us.ibm.com> lightly modified --- fs/cifs/CHANGES | 3 ++- fs/cifs/cifsfs.c | 4 ++++ fs/cifs/connect.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletions(-)
2005-08-30Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitSteve French1-1/+1
2005-08-30[CIFS] Remove cifs_sb argument from *build_path_from_dentrySteve French8-29/+29
This argument was added in a recent patch, but is unnecessary, since the superblock is easily obtained from the dentry. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-26[PATCH] Fix oops in fs/locks.c on close of file with pending locksSteve French1-1/+1
The recent change to locks_remove_flock code in fs/locks.c changes how byte range locks are removed from closing files, which shows up a bug in cifs. The assumption in the cifs code was that the close call sent to the server would remove any pending locks on the server on this file, but that is no longer safe as the fs/locks.c code on the client wants unlock of 0 to PATH_MAX to remove all locks (at least from this client, it is not possible AFAIK to remove all locks from other clients made to the server copy of the file). Note that cifs locks are different from posix locks - and it is not possible to map posix locks perfectly on the wire yet, due to restrictions of the cifs network protocol, even to Samba without adding a new request type to the network protocol (which we plan to do for Samba 3.0.21 within a few months), but the local client will have the correct, posix view, of the lock in most cases. The correct fix for cifs for this would involve a bigger change than I would like to do this late in the 2.6.13-rc cycle - and would involve cifs keeping track of all unmerged (uncoalesced) byte range locks for each remote inode and scanning that list to remove locks that intersect or fall wholly within the range - locks that intersect may have to be reaquired with the smaller, remaining range. Signed-off-by: Steve French <sfrench@us.ibm.com> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-24[CIFS] Support for legacy servers part 3 - Add support for Open and mostSteve French5-2/+330
of Read support. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24[CIFS] Use file instead of dentry in cifs dir_notify structSteve French1-1/+1
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24[CIFS] Change notify support part 3Steve French4-8/+12
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24[CIFS] Missing line from previous patchSteve French1-0/+1
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-24[CIFS] Change notify support part 2Steve French3-0/+34
Signed-off-by: Asser Ferno <asser@diku.dk> Signed-off-by: Steve French <sfrench@us.ibm.com> and lightly modified
2005-08-24[CIFS] Update thanks/contributor list with Miklos SzerediSteve French1-0/+4
(Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> also should have been listed on the last cifs patch fixing some lookup intent handling in cifs) Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24CIFS: Fix typos in fs/cifs/CHANGESSteve French1-8/+8
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>