summaryrefslogtreecommitdiffstats
path: root/fs/fat/fat.h
diff options
context:
space:
mode:
authorMarco Stornelli <marco.stornelli@gmail.com>2012-10-06 12:40:03 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-09 23:33:38 -0400
commite40b34c7921534a46f7bae23ec6646d3d9c2c7b2 (patch)
tree84a7ffac7bce215827fbde733aad964a5e38eaa4 /fs/fat/fat.h
parent67e2c19a3bcd32172c1d67294a1d6bb4bc60ca77 (diff)
downloadop-kernel-dev-e40b34c7921534a46f7bae23ec6646d3d9c2c7b2.zip
op-kernel-dev-e40b34c7921534a46f7bae23ec6646d3d9c2c7b2.tar.gz
fat: drop lock/unlock super
Removed lock/unlock super. Added a new private s_lock mutex. Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fat/fat.h')
-rw-r--r--fs/fat/fat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/fat/fat.h b/fs/fat/fat.h
index ca7e8f8..623f36f 100644
--- a/fs/fat/fat.h
+++ b/fs/fat/fat.h
@@ -71,8 +71,9 @@ struct msdos_sb_info {
unsigned long root_cluster; /* first cluster of the root directory */
unsigned long fsinfo_sector; /* sector number of FAT32 fsinfo */
struct mutex fat_lock;
- unsigned int prev_free; /* previously allocated cluster number */
- unsigned int free_clusters; /* -1 if undefined */
+ struct mutex s_lock;
+ unsigned int prev_free; /* previously allocated cluster number */
+ unsigned int free_clusters; /* -1 if undefined */
unsigned int free_clus_valid; /* is free_clusters valid? */
struct fat_mount_options options;
struct nls_table *nls_disk; /* Codepage used on disk */
OpenPOWER on IntegriCloud