Tetsuhiro Kohada
52b0c4709d
staging: exfat: remove fs_func struct.
...
Remove 'fs_func struct' and change indirect calls to direct calls.
The following issues are described in exfat's TODO.
> Create helper function for exfat_set_entry_time () and
> exfat_set_entry_type () because it's sort of ugly to be calling the same functionn directly and other code calling through the fs_func struc ponters ...
The fs_func struct was used for switching the helper functions of fat16/fat32/exfat.
Now, it has lost the role of switching, just making the code less readable.
Signed-off-by: Tetsuhiro Kohada <Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp >
Link: https://lore.kernel.org/r/20200123102445.123033-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-01-23 19:16:13 +01:00
Pragat Pandya
d85cad420a
staging: exfat: Fix alignment warnings
...
Fix checkpatch warning "Alignment should match open parenthesis".
Signed-off-by: Pragat Pandya <pragat.pandya@gmail.com >
Link: https://lore.kernel.org/r/20200111142233.11354-1-pragat.pandya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-01-14 14:56:36 +01:00
Namjae Jeon
5f33771fb0
staging: exfat: add STAGING prefix to config names
...
Add STAGING prefix to config names to avoid collsion with fs/exfat config.
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com >
Link: https://lore.kernel.org/r/20200103011345.25245-1-namjae.jeon@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-01-03 11:04:58 +01:00
Greg Kroah-Hartman
b3bb164aa5
Merge 5.5-rc2 into staging-next
...
We want the staging driver fixes in here, and this resolves merge issues
with the isdn code that was pointed out in linux-next
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-12-16 09:06:50 +01:00
Brendan Higgins
1af73a25e6
staging: exfat: fix multiple definition error of `rename_file'
...
`rename_file' was exported but not properly namespaced causing a
multiple definition error because `rename_file' is already defined in
fs/hostfs/hostfs_user.c:
ld: drivers/staging/exfat/exfat_core.o: in function `rename_file':
drivers/staging/exfat/exfat_core.c:2327: multiple definition of
`rename_file'; fs/hostfs/hostfs_user.o:fs/hostfs/hostfs_user.c:350:
first defined here
make: *** [Makefile:1077: vmlinux] Error 1
This error can be reproduced on ARCH=um by selecting:
CONFIG_EXFAT_FS=y
CONFIG_HOSTFS=y
Add a namespace prefix exfat_* to fix this error.
Reported-by: Brendan Higgins <brendanhiggins@google.com >
Signed-off-by: Brendan Higgins <brendanhiggins@google.com >
Cc: stable <stable@vger.kernel.org >
Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu >
Tested-by: David Gow <davidgow@google.com >
Reviewed-by: David Gow <davidgow@google.com >
Link: https://lore.kernel.org/r/20191204234522.42855-1-brendanhiggins@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-12-10 10:56:55 +01:00
Andrea Righi
1184fd9966
staging: exfat: properly support discard in clr_alloc_bitmap()
...
Currently the discard code in clr_alloc_bitmap() is just dead code.
Move code around so that the discard operation is properly attempted
when enabled.
Signed-off-by: Andrea Righi <andrea.righi@canonical.com >
Link: https://lore.kernel.org/r/20191205152913.GJ3276@xps-13
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-12-10 10:56:53 +01:00
Susarla Nikhilesh
eb00d734bc
staging: exfat: fix spelling mistake
...
CHECK: 'propogate' may be misspelled - perhaps 'propagate'?
FILE: drivers/staging/exfat/exfat_super.c:1484
CHECK: 'propogate' may be misspelled - perhaps 'propagate'?
FILE: drivers/staging/exfat/exfat_super.c:1551
Signed-off-by: Susarla Nikhilesh <nikhilesh1294@gmail.com >
Link: https://lore.kernel.org/r/20191203143023.2786-1-nikhilesh1294@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-12-10 10:34:41 +01:00
Colin Ian King
635dad0911
staging: exfat: fix spelling mistake "maont" -> "mount"
...
There is a spelling mistake in a kernel info message. Fix it.
Signed-off-by: Colin Ian King <colin.king@canonical.com >
Link: https://lore.kernel.org/r/20191114221509.10728-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-15 14:11:25 +08:00
YueHaibing
d138aed68a
staging: exfat: remove two unused functions
...
Fix sparse warnings:
drivers/staging/exfat/exfat_core.c:2045:4: warning: symbol 'calc_checksum_1byte' was not declared. Should it be static?
drivers/staging/exfat/exfat_core.c:2080:5: warning: symbol 'calc_checksum_4byte' was not declared. Should it be static?
The two functions has no caller in tree, so remove it.
Reported-by: Hulk Robot <hulkci@huawei.com >
Signed-off-by: YueHaibing <yuehaibing@huawei.com >
Link: https://lore.kernel.org/r/20191114140348.46088-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-15 14:11:24 +08:00
Colin Ian King
7a3674898d
staging: exfat: fix indentation issue
...
There is a declaration that requires indentation. Add in
the missing tab.
Signed-off-by: Colin Ian King <colin.king@canonical.com >
Link: https://lore.kernel.org/r/20191113164210.103586-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-14 11:07:15 +08:00
Valdis Kletnieks
6366e523eb
staging: exfat: Update the TODO file
...
Updating with the current laundry list of things that need attention.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112223609.163501-1-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:19:34 +01:00
Valdis Kletnieks
65b88d81f5
staging: exfat: Clean up the namespace pollution part 8
...
Rename all the FAT_* functions to exfat_fat_*.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-13-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:37 +01:00
Valdis Kletnieks
99a4b13528
staging: exfat: Clean up the namespace pollution part 7
...
Global functions called 'buf*' are a linkage editor disaster waiting to
happen. Rename our buf_* functions to exfat_buf_*
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-12-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:37 +01:00
Valdis Kletnieks
e5a490e037
staging: exfat: Clean up the namespace pollution part 6
...
Move a few more things so we can make them static and clear exfat.h out.
At this point, pretty much everything that can be static is static.
(Note: FAT_sync(), buf_sync(), and sync_alloc_bitmap() aren't called
anyplace, but aren't static because (a) that will toss an error and
(b) they probably *should* be getting called someplace
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-11-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:37 +01:00
Valdis Kletnieks
a78b34b89b
staging: exfat: Clean up the namespace pollution part 5
...
Some more functions that can be moved and made static
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-10-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:36 +01:00
Valdis Kletnieks
9435fa8d06
staging: exfat: Clean up the namespace pollution part 4
...
Relocating these functions to before first use lets us make them static
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-9-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:35 +01:00
Valdis Kletnieks
388cd66808
staging: exfat: Clean up the namespace pollution part 3
...
These functions are only used in the local file, make them static
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-8-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:35 +01:00
Valdis Kletnieks
ed5916c1e8
staging: exfat: Clean up the namespace pollution part 2
...
Rename all the bdev_* to exfat_bdev_*
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-7-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:34 +01:00
Valdis Kletnieks
19e2bfe6ed
staging: exfat: Clean up the namespace pollution part 1
...
Everything referenced in the struct fs_func exfat_fs_func is located
in that same .c file. Make them static and remove from exfat.h
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-6-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:34 +01:00
Valdis Kletnieks
35a829c1b7
staging: exfat: Remove FAT/VFAT mount support, part 4
...
The code simplification from the previous patch rendered a few more
routines unreferenced, so heave them over the side as well.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-5-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:33 +01:00
Valdis Kletnieks
2a17b09fde
staging: exfat: Remove FAT/VFAT mount support, part 3
...
In this patch, we straighten out most of the cases where the
code was testing 'p_fs->vol_type == EXFAT' and '!= EXFAT'
There's still some ?: ops and a few places where the code
is doing checks for '.' and '..' that require looking at,
but those are future patches
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-4-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:33 +01:00
Valdis Kletnieks
7c6d78eb7c
staging: exfat: Remove FAT/VFAT mount support, part 2
...
Remove no longer referenced FAT/VFAT routines.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-3-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:32 +01:00
Valdis Kletnieks
04a991cd90
staging: exfat: Remove FAT/VFAT mount support, part 1
...
Remove the top-level mount functionality, to make this driver handle
only exfat file systems.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112211238.156490-2-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:17:32 +01:00
Valdis Kletnieks
ecbc9e989f
staging: exfat: Correct return code
...
Use -ENOTEMPTY rather than -EEXIST for attempting to remove
a directory that still has files in it.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-10-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:15:45 +01:00
Valdis Kletnieks
ad03f80f7b
staging: exfat: Collapse redundant return code translations
...
Now that we no longer use odd internal return codes, we can
heave the translation code over the side, and just pass the
error code back up the call chain.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-9-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:15:44 +01:00
Valdis Kletnieks
4b18672132
staging: exfat: Clean up return codes - FFS_SUCCESS
...
Convert FFS_SUCCESS to 0.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-8-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:15:44 +01:00
Valdis Kletnieks
97eab6cee3
staging: exfat: Clean up return codes - remove unused codes
...
There are 6 FFS_* error values not used at all. Remove them.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-7-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:13:56 +01:00
Valdis Kletnieks
0a7ef8d948
staging: exfat: Clean up return codes - FFS_ERROR
...
Convert FFS_ERROR to -EINVAL
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-6-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:13:56 +01:00
Valdis Kletnieks
7785913b07
staging: exfat: Clean up return codes - FFS_INVALIDFID
...
Covert FFS_INVALIDFID to -EINVAL
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-5-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:13:55 +01:00
Valdis Kletnieks
f9c53abb42
staging: exfat: Clean up return codes - FFS_EOF
...
Convert FFS_EOF to return 0 for a zero-length read() as per 'man 2 read'.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-4-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:13:55 +01:00
Valdis Kletnieks
a75500c5d3
staging: exfat: Clean up return codes - FFS_MEDIAERR
...
Convert FFS_MEDIAERR to (mostly) -ENOENT and -EIO. Some additional code surgery
needed to propogate correct error codes upwards.
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-3-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:13:54 +01:00
Valdis Kletnieks
133c887424
staging: exfat: Clean up return codes - FFS_FORMATERR
...
Convert FFS_FORMATERR to -EFSCORRUPTED
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191112021000.42091-2-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-13 00:12:02 +01:00
Arnd Bergmann
a46e810975
staging: exfat: use prandom_u32() for i_generation
...
Similar to commit 46c9a946d7 ("shmem: use monotonic time for i_generation")
we should not use the deprecated get_seconds() interface for i_generation.
prandom_u32() is the replacement used in other file systems.
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Valdis Kletnieks <valdis.kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191108213257.3097633-2-arnd@arndb.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-11 16:37:59 +01:00
Davidlohr Bueso
6647e4e845
staging: exfat: Ensure we unlock upon error in ffsReadFile
...
The call was not releasing the mutex upon error.
Reported-by: kbuild test robot <lkp@intel.com >
Reported-by: Julia Lawall <julia.lawall@lip6.fr >
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net >
Acked-By: Valdis Kletnieks <valdis.kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191103180921.2844-1-dave@stgolabs.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-03 19:40:09 +01:00
Frank A. Cancio Bello
d3baf1e0b2
staging: exfat: Fix logical operation continuation
...
Operators inside a multiline logical expression should be at the end
of the line not at the beginning. This patch fixes two of those cases
and remove an unnecessary parenthesis too, to comply in that way with
the preferred coding style for the linux kernel.
Suggested-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com >
Acked-by: Julia Lawall <julia.lawall@lip6.fr >
Link: https://lore.kernel.org/r/ace2cbd5e4c03751fb522e7bbd60149e7ed969ae.1572666556.git.frank@generalsoftwareinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-03 13:10:10 +01:00
Frank A. Cancio Bello
8a4e640eb7
staging: exfat: Fix parameter alignment issues
...
Fix alignment to match open parenthesis to comply in that way with
the preferred coding style for the linux kernel. Issue found by
checkpatch.
Suggested-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com >
Acked-by: Julia Lawall <julia.lawall@lip6.fr >
Link: https://lore.kernel.org/r/fe316e694ea9c4aa370d3a8166a3680feb342682.1572666556.git.frank@generalsoftwareinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-03 13:10:10 +01:00
Davidlohr Bueso
74179976b0
drivers/staging/exfat: Replace more binary semaphores with mutexes
...
At a slight footprint cost (24 vs 32 bytes), mutexes are more optimal
than semaphores; it's also a nicer interface for mutual exclusion,
which is why they are encouraged over binary semaphores, when possible.
There is also lockdep support.
For both f_sem and b_sem, their semantics imply traditional lock
ownership; that is, the lock owner is the same for both lock/unlock
operations and not under irq contexts (ie for trylock/unlock scenarios).
Therefore it is safe to convert.
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net >
Link: https://lore.kernel.org/r/20191101185332.31786-1-dave@stgolabs.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-02 11:41:36 +01:00
Roi Martin
129376c6d6
staging: exfat: replace kmalloc with kmalloc_array
...
Replace expressions of the form:
kmalloc(count * size, GFP_KERNEL);
With:
kmalloc_array(count, size, GFP_KERNEL);
Signed-off-by: Roi Martin <jroi.martin@gmail.com >
Link: https://lore.kernel.org/r/20191031123139.32361-1-jroi.martin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-01 10:50:37 +01:00
Davidlohr Bueso
3ae82f449c
drivers/staging/exfat: Replace binary semaphores for mutexes
...
At a slight footprint cost (24 vs 32 bytes), mutexes are more optimal
than semaphores; it's also a nicer interface for mutual exclusion,
which is why they are encouraged over binary semaphores, when possible.
For both v_sem and z_sem, their semantics imply traditional lock
ownership; that is, the lock owner is the same for both lock/unlock
operations. Therefore it is safe to convert.
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net >
Acked-by: Valdis Kletnieks <valdis.kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191030144916.10802-1-dave@stgolabs.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-11-01 10:50:37 +01:00
Roi Martin
d5ca94a4bd
staging: exfat: avoid multiple assignments
...
Fix checkpatch.pl warning:
CHECK: multiple assignments should be avoided
Signed-off-by: Roi Martin <jroi.martin@gmail.com >
Link: https://lore.kernel.org/r/20191030010328.10203-6-jroi.martin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-30 10:41:38 +01:00
Roi Martin
89f882db11
staging: exfat: replace printk(KERN_INFO ...) with pr_info()
...
Fix checkpatch.pl warning:
WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ...
then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
Signed-off-by: Roi Martin <jroi.martin@gmail.com >
Link: https://lore.kernel.org/r/20191030010328.10203-5-jroi.martin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-30 10:41:37 +01:00
Roi Martin
487242c3dd
staging: exfat: remove unnecessary new line in if condition
...
Fix checkpatch.pl warning:
CHECK: Logical continuations should be on the previous line
Signed-off-by: Roi Martin <jroi.martin@gmail.com >
Link: https://lore.kernel.org/r/20191030010328.10203-4-jroi.martin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-30 10:41:37 +01:00
Roi Martin
072429a4d6
staging: exfat: make alignment match open parenthesis
...
Fix checkpatch.pl warning:
CHECK: Alignment should match open parenthesis
Signed-off-by: Roi Martin <jroi.martin@gmail.com >
Link: https://lore.kernel.org/r/20191030010328.10203-3-jroi.martin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-30 10:41:37 +01:00
Roi Martin
6853f94ad7
staging: exfat: remove unnecessary parentheses
...
Fix checkpatch.pl warning:
CHECK: Unnecessary parentheses around ...
Signed-off-by: Roi Martin <jroi.martin@gmail.com >
Link: https://lore.kernel.org/r/20191030010328.10203-2-jroi.martin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-30 10:41:36 +01:00
Valdis Kletnieks
630d00b8b2
staging: exfat: Clean up return code - FFS_MEMORYERR
...
Convert FFS_MEMORYERR to -ENOMEM
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191024155327.1095907-9-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-24 22:53:20 -04:00
Valdis Kletnieks
03eac8d594
staging: exfat: Clean up return codes - FFS_INVALIDPATH
...
Convert FFS_INVALIDPATH to -EINVAL
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191024155327.1095907-8-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-24 22:53:20 -04:00
Valdis Kletnieks
c76c4ad547
staging: exfat: Clean up return codes - FFS_FILEEXIST
...
Convert FFS_FILEEXIST to -EEXIST
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191024155327.1095907-7-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-24 22:52:33 -04:00
Valdis Kletnieks
ab5a321da0
staging: exfat: Clean up return codes - FFS_NAMETOOLONG
...
Convert FFS_NOTNAMETOOLONG to -ENAMETOOLONG
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191024155327.1095907-6-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-24 22:51:09 -04:00
Valdis Kletnieks
7ca8049f09
staging: exfat: Clean up return codes - FFS_PERMISSIONERR
...
Convert FFS_PERMISSIONERR to -EPERM
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191024155327.1095907-5-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-24 22:49:36 -04:00
Valdis Kletnieks
df7098f84f
staging: exfat: Clean up return codes - FFS_DIRBUSY
...
Convert FFS_DIRBUSY to -EBUSY
Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu >
Link: https://lore.kernel.org/r/20191024155327.1095907-4-Valdis.Kletnieks@vt.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-10-24 22:49:35 -04:00